mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
fix netifd
This commit is contained in:
parent
ee2ed3bddc
commit
462a79d4dc
15 changed files with 756 additions and 0 deletions
12
netifd/files/sbin/devstatus
Executable file
12
netifd/files/sbin/devstatus
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/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)"
|
Loading…
Add table
Add a link
Reference in a new issue