openwrt_archive/package/netifd/files/sbin/ifstatus
Felix Fietkau ea5d638123 netifd: update to latest version
fixes DNS servers on reload (#12910)
fixes ubus object race on reload or down/up (#12612)

Backport of r35383

SVN-Revision: 35384
2013-01-29 14:41:40 +00:00

14 lines
273 B
Bash
Executable File

#!/bin/sh
INTERFACE="$1"
[ -n "$INTERFACE" ] || {
echo "Usage: $0 <interface>"
exit 1
}
ubus -S list "network.interface.$INTERFACE" >/dev/null || {
echo "Interface $INTERFACE not found"
exit 1
}
ubus call network.interface status "{ \"interface\" : \"$INTERFACE\" }"