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:
parent
90e0c41dc6
commit
571d37e147
23 changed files with 1918 additions and 0 deletions
13
netifd/files/sbin/ifstatus
Executable file
13
netifd/files/sbin/ifstatus
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
INTERFACE="$1"
|
||||
|
||||
[ -n "$INTERFACE" ] || {
|
||||
echo "Usage: $0 <interface>"
|
||||
exit 1
|
||||
}
|
||||
|
||||
ubus -S list "network.interface.$INTERFACE" >/dev/null || {
|
||||
echo "Interface $INTERFACE not found"
|
||||
exit 1
|
||||
}
|
||||
ubus call network.interface status "{ \"interface\" : \"$INTERFACE\" }"
|
Loading…
Add table
Add a link
Reference in a new issue