aboutsummaryrefslogtreecommitdiffstats
path: root/package/netifd
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-23 17:22:01 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-10-23 17:22:01 +0000
commit4112fbaafbed50bfe68ba95c3b8be662fc0acad5 (patch)
treec159ff07591d5ce51ee28ada2b8e3f5873eb15fc /package/netifd
parent204bf6e5fef681cf4658edb9223ce1fa2a079ace (diff)
downloadupstream-4112fbaafbed50bfe68ba95c3b8be662fc0acad5.tar.gz
upstream-4112fbaafbed50bfe68ba95c3b8be662fc0acad5.tar.bz2
upstream-4112fbaafbed50bfe68ba95c3b8be662fc0acad5.zip
netifd: reload the network config on ifup -a
SVN-Revision: 28544
Diffstat (limited to 'package/netifd')
-rwxr-xr-xpackage/netifd/files/sbin/ifup1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/netifd/files/sbin/ifup b/package/netifd/files/sbin/ifup
index 1036943ab2..ef85de1fe8 100755
--- a/package/netifd/files/sbin/ifup
+++ b/package/netifd/files/sbin/ifup
@@ -14,6 +14,7 @@ if_call() {
}
[[ "$1" == "-a" ]] && {
+ [ "$modes" = "down up" ] && ubus call network reload
for interface in `ubus -S list 'network.interface.*'`; do
if_call "$interface"
done