1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-23 08:18:58 +02:00
openwrt-xburst/package/netifd/files/sbin/ifstatus
nbd def14a0f45 netifd: add two simple scripts for querying interface/device status
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28545 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-23 17:22:14 +00:00

14 lines
249 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."$INTERFACE" status