summaryrefslogtreecommitdiff
path: root/package/base-files/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-09-14 16:14:27 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-09-14 16:14:27 +0000
commitbc37b2e831db50b01eb038f5a5cb5a3dd6b3fe49 (patch)
treebc8c201a773b90c67ef1661b63c522bdac2d86e4 /package/base-files/files
parent8df03c85fe0b83e0a7508298591ae92b4c13c986 (diff)
downloadmtk-20170518-bc37b2e831db50b01eb038f5a5cb5a3dd6b3fe49.zip
mtk-20170518-bc37b2e831db50b01eb038f5a5cb5a3dd6b3fe49.tar.gz
mtk-20170518-bc37b2e831db50b01eb038f5a5cb5a3dd6b3fe49.tar.bz2
base-files: dispatch ifdown events for proto=none interfaces and fix a race condition between revert state and hotplug handlers
SVN-Revision: 17582
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 883f8ec..8de414d 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