From: jow Date: Sat, 3 Apr 2010 13:44:38 +0000 (+0000) Subject: [backfire] merge r20669 X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=commitdiff_plain;h=22b0009323736c58ad2861531cc9739051ffe013 [backfire] merge r20669 git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@20671 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 856340f66..b4942d938 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -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/ diff --git a/package/base-files/files/etc/init.d/network b/package/base-files/files/etc/init.d/network index 3587c24aa..43d0a8423 100755 --- a/package/base-files/files/etc/init.d/network +++ b/package/base-files/files/etc/init.d/network @@ -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() {