netifd: reload the network config on ifup -a
[openwrt/openwrt.git] / package / netifd / files / sbin / ifup
index 1036943ab24895d709cca7b64e792f14b2b5e684..ef85de1fe832a53e47f4cbf1d73d468a5c52906e 100755 (executable)
@@ -14,6 +14,7 @@ if_call() {
 }
 
 [[ "$1" == "-a" ]] && {
 }
 
 [[ "$1" == "-a" ]] && {
+       [ "$modes" = "down up" ] && ubus call network reload
        for interface in `ubus -S list 'network.interface.*'`; do
                if_call "$interface"
        done
        for interface in `ubus -S list 'network.interface.*'`; do
                if_call "$interface"
        done