diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-08-03 21:00:01 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-08-03 21:00:01 +0000 |
commit | 78fa722e2550faa62a51f15cbfa7841e8e3a4d85 (patch) | |
tree | ca98300c11ab13f99f473871dec58d9a2be57fdd /package/base-files/files/sbin/ifdown | |
parent | c7fc82bc807876bc2c375055c2e0c65290170a2c (diff) |
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/base-files/files/sbin/ifdown')
-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" + + |