diff options
author | Uwe Stuehler <uwe@cvs.openbsd.org> | 2006-04-04 00:30:47 +0000 |
---|---|---|
committer | Uwe Stuehler <uwe@cvs.openbsd.org> | 2006-04-04 00:30:47 +0000 |
commit | deefe4b019ea084bf10f8577c0c87e4a98fb7a73 (patch) | |
tree | 7844535f8d7cbe5045efb87c24d3fce168cad971 /distrib | |
parent | ab30e27e98459fcfd9dbaeb7aa2e458de14493c7 (diff) |
Wait until the microdrive in socket 1 becomes ready before starting zboot.
This should avoid "hd0 missing" errors seen with some other cards inserted
in socket 0. Tested by me and probably kjell@
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/zaurus/ipk/rc.zboot | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/distrib/zaurus/ipk/rc.zboot b/distrib/zaurus/ipk/rc.zboot index c1d79373527..790ec09fff3 100644 --- a/distrib/zaurus/ipk/rc.zboot +++ b/distrib/zaurus/ipk/rc.zboot @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: rc.zboot,v 1.2 2005/07/12 06:31:53 uwe Exp $ +# $OpenBSD: rc.zboot,v 1.3 2006/04/04 00:30:46 uwe Exp $ # # Copyright (c) 2005 Uwe Stuehler <uwe@openbsd.org> # @@ -15,9 +15,18 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # -/bin/busybox sleep 2 /bin/busybox clear +# 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` +done + /sbin/insmod /root/etc/rc.d/zbsdmod.o && echo /bin/true > /proc/sys/kernel/modprobe && /root/etc/rc.d/zboot && |