diff options
author | Uwe Stuehler <uwe@cvs.openbsd.org> | 2006-04-21 17:45:45 +0000 |
---|---|---|
committer | Uwe Stuehler <uwe@cvs.openbsd.org> | 2006-04-21 17:45:45 +0000 |
commit | 49dc75b04215ff020e75c80f474069daacfe1f25 (patch) | |
tree | 134ba35681a6da4a86dc390b8c9c9dc946cea607 /distrib/zaurus | |
parent | 83ba572f2ccdaf0516742a8119f374a04d05a400 (diff) |
Sleep for whole seconds and use ksh arithmetic expressions instead of expr.
The C3000 has no expr. Noticed by David Krause.
Diffstat (limited to 'distrib/zaurus')
-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 && |