mirror of https://github.com/hak5/openwrt.git
base-files: properly handle wifi ifaces with no network attached, useful for unmanaged interfaces like used for batman or monitoring
SVN-Revision: 28860lede-17.01
parent
ec20b84048
commit
a73fffe857
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=base-files
|
||||
PKG_RELEASE:=88
|
||||
PKG_RELEASE:=89
|
||||
|
||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||
PKG_BUILD_DEPENDS:=opkg/host
|
||||
|
|
|
@ -129,9 +129,11 @@ start_net() {(
|
|||
local vifmac="$3"
|
||||
|
||||
[ -f "/var/run/$iface.pid" ] && kill "$(cat /var/run/${iface}.pid)" 2>/dev/null
|
||||
include /lib/network
|
||||
scan_interfaces
|
||||
setup_interface "$iface" "$config" "" "$vifmac"
|
||||
[ -z "$config" ] || {
|
||||
include /lib/network
|
||||
scan_interfaces
|
||||
setup_interface "$iface" "$config" "" "$vifmac"
|
||||
}
|
||||
)}
|
||||
|
||||
set_wifi_up() {
|
||||
|
|
Loading…
Reference in New Issue