diff options
author | Jonas Gorski <jogo@openwrt.org> | 2012-05-06 21:25:42 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2012-05-06 21:25:42 +0000 |
commit | 80650c9475ce20b379b2cf3f3f46fa52098eb6e9 (patch) | |
tree | 4497408cc7f008af57876e9eed0ef468acf53a50 /package/base-files/files/etc/init.d | |
parent | b218b15709d8699be79fd21e96bf589ca74aa187 (diff) | |
download | master-31e0f0ae-80650c9475ce20b379b2cf3f3f46fa52098eb6e9.tar.gz master-31e0f0ae-80650c9475ce20b379b2cf3f3f46fa52098eb6e9.tar.bz2 master-31e0f0ae-80650c9475ce20b379b2cf3f3f46fa52098eb6e9.zip |
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.
SVN-Revision: 31639
Diffstat (limited to 'package/base-files/files/etc/init.d')
-rwxr-xr-x | package/base-files/files/etc/init.d/boot | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot index 948a09e871..250bfe0401 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 |