1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-09-13 19:53:41 +03:00
openwrt-xburst/package/network/config/netifd/files/sbin/ifstatus

14 lines
249 B
Plaintext
Raw Normal View History

#!/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."$INTERFACE" status