source: trunk/package/netifd/files/sbin/ifstatus @ 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: 249 bytes
Line 
1#!/bin/sh
2INTERFACE="$1"
3
4[ -n "$INTERFACE" ] || {
5        echo "Usage: $0 <interface>"
6        exit 1
7}
8
9ubus -S list "network.interface.$INTERFACE" >/dev/null || {
10        echo "Interface $INTERFACE not found"
11        exit 1
12}
13ubus call network.interface."$INTERFACE" status
Note: See TracBrowser for help on using the repository browser.