aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-08-03 21:00:01 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-08-03 21:00:01 +0000
commitabdfec542682f70188d7a036bd6955ad3468e192 (patch)
treeca98300c11ab13f99f473871dec58d9a2be57fdd /package
parent8bb8f6e792fbe6ab0f966b2ded5e62da8ed78350 (diff)
downloadupstream-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-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 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"
+
+