netifd: reload the network config on ifup -a
authorFelix Fietkau <nbd@openwrt.org>
Sun, 23 Oct 2011 17:22:01 +0000 (17:22 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 23 Oct 2011 17:22:01 +0000 (17:22 +0000)
SVN-Revision: 28544

package/netifd/files/sbin/ifup

index 1036943ab24895d709cca7b64e792f14b2b5e684..ef85de1fe832a53e47f4cbf1d73d468a5c52906e 100755 (executable)
@@ -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