mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-01 16:58:22 +00:00
base-files: properly handle wifi ifaces with no network attached, useful for unmanaged interfaces like used for batman or monitoring
SVN-Revision: 28860
This commit is contained in:
parent
ec20b84048
commit
a73fffe857
@ -10,7 +10,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:=88
|
PKG_RELEASE:=89
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
PKG_BUILD_DEPENDS:=opkg/host
|
PKG_BUILD_DEPENDS:=opkg/host
|
||||||
|
@ -129,9 +129,11 @@ start_net() {(
|
|||||||
local vifmac="$3"
|
local vifmac="$3"
|
||||||
|
|
||||||
[ -f "/var/run/$iface.pid" ] && kill "$(cat /var/run/${iface}.pid)" 2>/dev/null
|
[ -f "/var/run/$iface.pid" ] && kill "$(cat /var/run/${iface}.pid)" 2>/dev/null
|
||||||
include /lib/network
|
[ -z "$config" ] || {
|
||||||
scan_interfaces
|
include /lib/network
|
||||||
setup_interface "$iface" "$config" "" "$vifmac"
|
scan_interfaces
|
||||||
|
setup_interface "$iface" "$config" "" "$vifmac"
|
||||||
|
}
|
||||||
)}
|
)}
|
||||||
|
|
||||||
set_wifi_up() {
|
set_wifi_up() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user