aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/netifd/files/sbin
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-29 14:40:04 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-01-29 14:40:04 +0000
commit65657fb5853869205ff6a1a2358a115990688d6d (patch)
treee2c7f736b4db8ffb2883cafa0d9b0b5446215b29 /package/network/config/netifd/files/sbin
parentc16879a385bcdeee426b2b7f0be89f0320b63c81 (diff)
downloadupstream-65657fb5853869205ff6a1a2358a115990688d6d.tar.gz
upstream-65657fb5853869205ff6a1a2358a115990688d6d.tar.bz2
upstream-65657fb5853869205ff6a1a2358a115990688d6d.zip
netifd: update to latest version
fixes DNS servers on reload (#12910) fixes ubus object race on reload or down/up (#12612) SVN-Revision: 35383
Diffstat (limited to 'package/network/config/netifd/files/sbin')
-rwxr-xr-xpackage/network/config/netifd/files/sbin/ifstatus2
-rwxr-xr-xpackage/network/config/netifd/files/sbin/ifup6
2 files changed, 4 insertions, 4 deletions
diff --git a/package/network/config/netifd/files/sbin/ifstatus b/package/network/config/netifd/files/sbin/ifstatus
index 511cc1d8d9..8a951e6e15 100755
--- a/package/network/config/netifd/files/sbin/ifstatus
+++ b/package/network/config/netifd/files/sbin/ifstatus
@@ -10,4 +10,4 @@ ubus -S list "network.interface.$INTERFACE" >/dev/null || {
echo "Interface $INTERFACE not found"
exit 1
}
-ubus call network.interface."$INTERFACE" status
+ubus call network.interface status "{ \"interface\" : \"$INTERFACE\" }"
diff --git a/package/network/config/netifd/files/sbin/ifup b/package/network/config/netifd/files/sbin/ifup
index e6dbb35417..af3aaa8453 100755
--- a/package/network/config/netifd/files/sbin/ifup
+++ b/package/network/config/netifd/files/sbin/ifup
@@ -6,7 +6,7 @@ setup_wifi=
if_call() {
local interface="$1"
for mode in $modes; do
- ubus call $interface $mode
+ ubus call network.interface $mode "{ \"interface\" : \"$interface\" }"
done
}
@@ -38,7 +38,7 @@ done
[ "$modes" = "down up" ] && ubus call network reload
if [ -n "$ifup_all" ]; then
for interface in `ubus -S list 'network.interface.*'`; do
- if_call "$interface"
+ if_call "${interface##network.interface.}"
done
[ -n "$setup_wifi" ] && /sbin/wifi up
exit
@@ -47,7 +47,7 @@ else
echo "Interface $1 not found"
exit
}
- if_call "network.interface.$1"
+ if_call "$1"
fi
if [ -n "$setup_wifi" ] && grep -sq config /etc/config/wireless; then