1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

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
This commit is contained in:
nbd
2011-10-23 17:22:14 +00:00
parent 9891a9a835
commit def14a0f45
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/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