mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-18 16:30:36 +02:00
def14a0f45
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28545 3c298f89-4303-0410-b956-a3cf2f4a3e73
14 lines
249 B
Bash
Executable File
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
|