mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-05 07:48:25 +02:00
13 lines
200 B
Plaintext
13 lines
200 B
Plaintext
|
#!/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)"
|