From b8a14b9359272f4a4d0b0268d3534039d8ba00d1 Mon Sep 17 00:00:00 2001 From: jogo Date: Sun, 6 May 2012 21:25:42 +0000 Subject: base-files: wait for wifi modules to settle On slower devices wifi drivers might take too long for detecting devices, resulting in the wifi detect call not seeing them. This was observed on a bcm6348 with bcm4318 wifi. Adding a one second pause was enough for b43 to expose the device. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31639 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/etc/init.d/boot | 3 +++ 1 file changed, 3 insertions(+) (limited to 'package/base-files') diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot index 948a09e87..250bfe040 100755 --- a/package/base-files/files/etc/init.d/boot +++ b/package/base-files/files/etc/init.d/boot @@ -71,6 +71,9 @@ start() { load_modules /etc/modules.d/* + # allow wifi modules time to settle + sleep 1 + /sbin/wifi detect > /tmp/wireless.tmp [ -s /tmp/wireless.tmp ] && { cat /tmp/wireless.tmp >> /etc/config/wireless -- cgit v1.2.3