mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user