1
1
Files
zyxel-vmg8825_b50b-cfw/package/network/config/netifd/files-2012-12-17.1/sbin/devstatus
T
2026-04-17 18:33:03 +02: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)"