1
0

devstatus 200 B

123456789101112
  1. #!/bin/sh
  2. . /usr/share/libubox/jshn.sh
  3. DEVICE="$1"
  4. [ -n "$DEVICE" ] || {
  5. echo "Usage: $0 <device>"
  6. exit 1
  7. }
  8. json_init
  9. json_add_string name "$DEVICE"
  10. ubus call network.device status "$(json_dump)"