1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-22 16:59:33 +02:00
openwrt-xburst/package/network/config/netifd/files/sbin/ifstatus
nbd 9c8997d54d packages: sort network related packages into package/network/
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33688 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-10 12:32:29 +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