mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-08-20 00:45:30 +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:
parent
0228176586
commit
b8df1b4c80
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=29
|
PKG_RELEASE:=30
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
|
|
||||||
|
@ -22,8 +22,8 @@ config_get proto "$cfg" proto
|
|||||||
[ -z "$proto" ] && { echo "interface not found."; exit; }
|
[ -z "$proto" ] && { echo "interface not found."; exit; }
|
||||||
|
|
||||||
config_get iface "$cfg" device
|
config_get iface "$cfg" device
|
||||||
[ "static" = "$proto" ] && {
|
[ "static" = "$proto" -o "none" = "$proto" ] && {
|
||||||
env -i ACTION="ifdown" INTERFACE="$cfg" DEVICE="$iface" PROTO=static /sbin/hotplug-call "iface" &
|
env -i ACTION="ifdown" INTERFACE="$cfg" DEVICE="$iface" PROTO="$proto" /sbin/hotplug-call "iface"
|
||||||
}
|
}
|
||||||
|
|
||||||
# call interface stop handler
|
# call interface stop handler
|
||||||
|
Loading…
Reference in New Issue
Block a user