2006-02-15 12:18:21 +01:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
2006-02-15 15:21:56 +01:00
|
|
|
/bin/service up /bin/pci
|
2006-05-11 16:53:20 +02:00
|
|
|
/bin/service -c up /bin/floppy -dev /dev/fd0
|
2006-02-15 12:18:21 +01:00
|
|
|
if [ X`/bin/sysenv bios_wini` = Xyes ]
|
|
|
|
then
|
|
|
|
echo Using bios_wini.
|
2006-05-11 16:53:20 +02:00
|
|
|
/bin/service -c up /bin/bios_wini -dev /dev/c0d0
|
2006-02-15 12:18:21 +01:00
|
|
|
else
|
2006-05-11 16:53:20 +02:00
|
|
|
/bin/service -c up /bin/at_wini -dev /dev/c0d0
|
2006-02-15 12:18:21 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
rootdev=`sysenv rootdev` || echo 'No rootdev?'
|
|
|
|
rootdevname=`/bin/dev2name "$rootdev"` ||
|
|
|
|
{ echo 'No device name for root device'; exit 1; }
|
|
|
|
|
|
|
|
if sysenv cdproberoot >/dev/null
|
|
|
|
then
|
|
|
|
echo
|
|
|
|
echo 'Looking for boot CD. This may take a minute.'
|
|
|
|
echo 'Please ignore any error messages.'
|
|
|
|
echo
|
|
|
|
cddev=`cdprobe` || { echo 'No CD found'; exit 1; }
|
|
|
|
export cddev
|
|
|
|
echo "Loading ramdisk from ${cddev}p1"
|
|
|
|
loadramdisk "$cddev"p1
|
|
|
|
elif [ "$rootdevname" = "/dev/ram" ]
|
|
|
|
then
|
|
|
|
ramimagedev=`sysenv ramimagedev` ||
|
|
|
|
{ echo 'ramimagedev not found'; exit 1; }
|
|
|
|
ramimagename=`/bin/dev2name "$ramimagedev"` ||
|
|
|
|
{ echo 'No device name for ramimagedev'; exit 1; }
|
|
|
|
echo "Loading ramdisk from $ramimagename"
|
|
|
|
loadramdisk "$ramimagename"
|
|
|
|
fi
|
|
|
|
echo "Root device name is $rootdevname"
|
|
|
|
/bin/newroot "$rootdevname"
|
2006-03-07 15:58:18 +01:00
|
|
|
exec /bin/sh /etc/rc "$@"
|