mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
base-files: also regenerate wifi config if existing config contains only whitespace
SVN-Revision: 20669
This commit is contained in:
parent
a0a6400034
commit
10c00a6368
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
PKG_NAME:=base-files
|
||||
PKG_RELEASE:=41
|
||||
PKG_RELEASE:=42
|
||||
|
||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||
|
||||
|
@ -9,9 +9,12 @@ boot() {
|
||||
|
||||
include /lib/network
|
||||
setup_switch
|
||||
[ -s /etc/config/wireless ] || \
|
||||
grep -qs config /etc/config/wireless && {
|
||||
/sbin/wifi up
|
||||
} || {
|
||||
rm -f /etc/config/wireless
|
||||
/sbin/wifi detect > /etc/config/wireless
|
||||
/sbin/wifi up
|
||||
}
|
||||
}
|
||||
|
||||
start() {
|
||||
|
Loading…
Reference in New Issue
Block a user