summaryrefslogtreecommitdiff
path: root/packages/altboot/files/altboot.func
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-07-05 05:10:08 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-07-05 05:10:08 +0000
commit74244b4dbcfcbc5c074a204ba525852df9ddf999 (patch)
treeda4516f94c87c5f5ec377bf93c26b6879b91dfea /packages/altboot/files/altboot.func
parente9d6aaf75c32baf067a682a6ddb36bebfe447fd1 (diff)
altboot: Update to 1.0.7 final
Diffstat (limited to 'packages/altboot/files/altboot.func')
-rw-r--r--packages/altboot/files/altboot.func25
1 files changed, 20 insertions, 5 deletions
diff --git a/packages/altboot/files/altboot.func b/packages/altboot/files/altboot.func
index 98c38b40ef..9a0b139bfb 100644
--- a/packages/altboot/files/altboot.func
+++ b/packages/altboot/files/altboot.func
@@ -686,7 +686,7 @@ start_networking() {
then
echo -e "\nRunning cardctl to setup networking..."
/etc/init.d/pcmcia start >/dev/null 2>&1 || die "/etc/init.d/pcmcia start failed!"
- sleep 1
+ sleep 3
else
# With kernel 2.6.16+ udev is used
echo -e "\nRunning udevd to setup networking..."
@@ -719,10 +719,25 @@ start_networking() {
if test -z "$WLAN_NIC"
then
- debug_echo "WARNING: WLAN_NIC is empty!\n"
- debug_echo "Filter result: [$WLAN_NIC]"
- debug_echo "iwconfig: [`iwconfig`]"
- mdie "No network interface found"
+ # cardctl needs some time....
+ echo -n "Waiting for WLAN card.."
+ timeout=0
+ while test "$timeout" -lt 10
+ do
+ WLAN_NIC="`iwconfig 2>/dev/null | grep ESSID | grep -v wifi | awk '{print $1}'`"
+ test -n "$WLAN_NIC" && break
+ echo -n "."
+ let timeout=$timeout+1
+ sleep 1
+ done
+
+ if test -z "$WLAN_NIC"
+ then
+ debug_echo "WARNING: WLAN_NIC is empty!\n"
+ debug_echo "Filter result: [$WLAN_NIC]"
+ debug_echo "iwconfig: [`iwconfig`]"
+ mdie "No network interface found"
+ fi
fi
# WLAN with DHCP needs some time to get a lease, set up the routing, etc.