Openwrt/package/netifd/files/sbin/devstatus
2011-10-23 17:22:14 +00:00

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)"