mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-16 19:45:00 +02:00
9c8997d54d
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33688 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
|