summaryrefslogtreecommitdiff
path: root/package/netifd/files
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/files
parent204bf6e5fef681cf4658edb9223ce1fa2a079ace (diff)
downloadmtk-20170518-4112fbaafbed50bfe68ba95c3b8be662fc0acad5.zip
mtk-20170518-4112fbaafbed50bfe68ba95c3b8be662fc0acad5.tar.gz
mtk-20170518-4112fbaafbed50bfe68ba95c3b8be662fc0acad5.tar.bz2
netifd: reload the network config on ifup -a
SVN-Revision: 28544
Diffstat (limited to 'package/netifd/files')
-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 1036943..ef85de1 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