1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Changes on netifd and modemmanager to use the defaultroute setting

This commit is contained in:
Ycarus (Yannick Chabanois) 2022-01-14 09:01:39 +01:00
parent 90e0c41dc6
commit 571d37e147
23 changed files with 1918 additions and 0 deletions

12
netifd/files/sbin/devstatus Executable file
View 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)"