diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-08-03 21:00:01 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-08-03 21:00:01 +0000 |
commit | abdfec542682f70188d7a036bd6955ad3468e192 (patch) | |
tree | ca98300c11ab13f99f473871dec58d9a2be57fdd /package | |
parent | 8bb8f6e792fbe6ab0f966b2ded5e62da8ed78350 (diff) | |
download | upstream-abdfec542682f70188d7a036bd6955ad3468e192.tar.gz upstream-abdfec542682f70188d7a036bd6955ad3468e192.tar.bz2 upstream-abdfec542682f70188d7a036bd6955ad3468e192.zip |
network scripts: revert the network state after running ifdown, not before
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12081 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-x | package/base-files/files/sbin/ifdown | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown index 1f200fbdf1..7cc87deb77 100755 --- a/package/base-files/files/sbin/ifdown +++ b/package/base-files/files/sbin/ifdown @@ -11,9 +11,6 @@ exit } -# remove the interface's network state -uci_revert_state network "$1" - include /lib/network scan_interfaces @@ -64,3 +61,7 @@ done config_get iftype "$cfg" type [ "bridge" = "$iftype" ] && brctl delbr "$ifname" >/dev/null 2>/dev/null +# remove the interface's network state +uci_revert_state network "$1" + + |