source: trunk/package/netifd/files/sbin/devstatus @ 28545

Last change on this file since 28545 was 28545, checked in by nbd, 5 years ago

netifd: add two simple scripts for querying interface/device status

  • Property svn:executable set to *
File size: 200 bytes
Line 
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)"
Note: See TracBrowser for help on using the repository browser.