summaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-08-03 21:00:01 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-08-03 21:00:01 +0000
commit78fa722e2550faa62a51f15cbfa7841e8e3a4d85 (patch)
treeca98300c11ab13f99f473871dec58d9a2be57fdd /package/base-files
parentc7fc82bc807876bc2c375055c2e0c65290170a2c (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')
-rwxr-xr-xpackage/base-files/files/sbin/ifdown7
1 files changed, 4 insertions, 3 deletions
diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown
index 1f200fbdf..7cc87deb7 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"
+
+