summaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-09-14 16:14:27 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-09-14 16:14:27 +0000
commitb8df1b4c802a0f113d48456b093e73f20c0cef45 (patch)
treed6c8094df0174b24eb28240901da749be397aa04 /package/base-files/files
parent0228176586d442416f0000a4fcf2cfa5686241bc (diff)
[package] base-files: dispatch ifdown events for proto=none interfaces and fix a race condition between revert state and hotplug handlers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17582 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-xpackage/base-files/files/sbin/ifdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/sbin/ifdown b/package/base-files/files/sbin/ifdown
index 883f8ec42..8de414d8b 100755
--- a/package/base-files/files/sbin/ifdown
+++ b/package/base-files/files/sbin/ifdown
@@ -22,8 +22,8 @@ config_get proto "$cfg" proto
[ -z "$proto" ] && { echo "interface not found."; exit; }
config_get iface "$cfg" device
-[ "static" = "$proto" ] && {
- env -i ACTION="ifdown" INTERFACE="$cfg" DEVICE="$iface" PROTO=static /sbin/hotplug-call "iface" &
+[ "static" = "$proto" -o "none" = "$proto" ] && {
+ env -i ACTION="ifdown" INTERFACE="$cfg" DEVICE="$iface" PROTO="$proto" /sbin/hotplug-call "iface"
}
# call interface stop handler