mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
01f9388cde
SVN-Revision: 28545
13 lines
200 B
Bash
Executable File
13 lines
200 B
Bash
Executable File
#!/bin/sh
|
|
. /usr/share/libubox/jshn.sh
|
|
DEVICE="$1"
|
|
|
|
[ -n "$DEVICE" ] || {
|
|
echo "Usage: $0 <device>"
|
|
exit 1
|
|
}
|
|
|
|
json_init
|
|
json_add_string name "$DEVICE"
|
|
ubus call network.device status "$(json_dump)"
|