mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-13 10:24:51 +00:00
01f9388cde
SVN-Revision: 28545
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
|