Root/package/netifd/files/sbin/devstatus

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

Archive Download this file



interactive