summaryrefslogtreecommitdiff
path: root/netifd/files/sbin/devstatus
blob: 3c35b26a4129fc6a558be2c362e5a0cd5d7f1308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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)"