mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-05 04:25:05 +02:00
[package] base-files: also regenerate wifi config if existing config contains only whitespace
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20669 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
ac1453a896
commit
c07af08426
@ -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:=41
|
PKG_RELEASE:=42
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
|
|
||||||
|
@ -9,9 +9,12 @@ boot() {
|
|||||||
|
|
||||||
include /lib/network
|
include /lib/network
|
||||||
setup_switch
|
setup_switch
|
||||||
[ -s /etc/config/wireless ] || \
|
grep -qs config /etc/config/wireless && {
|
||||||
/sbin/wifi detect > /etc/config/wireless
|
|
||||||
/sbin/wifi up
|
/sbin/wifi up
|
||||||
|
} || {
|
||||||
|
rm -f /etc/config/wireless
|
||||||
|
/sbin/wifi detect > /etc/config/wireless
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
|
Loading…
Reference in New Issue
Block a user