10 if [ -e $ACPI -a -n "`sysenv acpi`" ]
12 /bin
/service
-c up
$ACPI
14 /bin
/service
-c up
/usr
/sbin
/pci
15 /bin
/service
-cn up
/sbin
/floppy
-dev /dev
/fd0
16 if [ X
`/bin/sysenv ahci` = Xyes
]
18 # this is here temporarily, for testing purposes
19 /bin
/service
-c up
/sbin
/ahci
-dev /dev
/c0d0
-label ahci_0
-args instance
=0
20 elif [ X
`/bin/sysenv virtio_blk` = Xyes
]
22 /bin
/service
-c up
/sbin
/virtio_blk
-dev /dev
/c0d0
-label virtio_blk_0
-args instance
=0
24 /bin
/service
-c up
/sbin
/at_wini
-dev /dev
/c0d0
-label at_wini_0
25 /bin
/service
-cr up
/sbin
/at_wini
-dev /dev
/c1d0
-label at_wini_1
-args instance
=1
27 /bin
/service up
/sbin
/procfs ||
echo "WARNING: couldn't start procfs"
29 if /bin
/sysenv rootdevname
>/dev
/null
30 then rootdevname
=/dev
/`/bin/sysenv rootdevname`
31 else echo "rootdevname not set"
35 if [ "`sysenv bin_img`" = 1 ]
40 if sysenv cdproberoot
>/dev
/null
43 echo 'Looking for boot CD. This may take a minute.'
44 echo 'Please ignore any error messages.'
46 cddev
=`cdprobe` ||
{ echo 'No CD found'; exit 1; }
48 echo "Loading ramdisk from ${cddev}p1"
49 loadramdisk
"$cddev"p1
50 elif [ "$rootdevname" = "/dev/ram" ]
52 ramimagename
=/dev
/`/bin/sysenv ramimagename`
53 echo "Loading ramdisk from $ramimagename"
54 loadramdisk
"$ramimagename" ||
echo "WARNING: loadramdisk failed"
57 echo "Root device name is $rootdevname"
59 then $FSCK -p $rootdevname
62 # Change root from temporary boot ramdisk to the configure
64 /bin
/mount
-n $bin_img"$rootdevname" /
66 /bin
/mount
-e -n -t procfs none
/proc ||
echo "WARNING: couldn't mount procfs"
68 exec /bin
/sh
/etc
/rc
"$@"