diff options
Diffstat (limited to 'distrib/zaurus/ipk')
-rw-r--r-- | distrib/zaurus/ipk/rc.zboot | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/distrib/zaurus/ipk/rc.zboot b/distrib/zaurus/ipk/rc.zboot index 790ec09fff3..1e9e7f1a874 100644 --- a/distrib/zaurus/ipk/rc.zboot +++ b/distrib/zaurus/ipk/rc.zboot @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: rc.zboot,v 1.3 2006/04/04 00:30:46 uwe Exp $ +# $OpenBSD: rc.zboot,v 1.4 2006/04/21 17:45:44 uwe Exp $ # # Copyright (c) 2005 Uwe Stuehler <uwe@openbsd.org> # @@ -19,12 +19,10 @@ # Wait until the card in socket 1 appears. i=0 -while [ $i -lt 100 ]; do - if grep '^1' /var/lib/pcmcia/stab > /dev/null; then - break - fi - /bin/busybox sleep .5 - i=`expr $i + 1` +while ! grep '^1' /var/lib/pcmcia/stab > /dev/null; do + [ $i -lt 30 ] || break + i=$(($i+1)) + /bin/busybox sleep 1 done /sbin/insmod /root/etc/rc.d/zbsdmod.o && |