fixed init

This commit is contained in:
Tobias Powalowski 2009-09-08 19:38:42 +02:00
parent 8c297c9fbb
commit 5b8be07556

View file

@ -66,7 +66,7 @@ for m in ${MODULES}; do
done
# If rootdelay is empty or not a non-negative integer, set it to 10
if [ -z "${rootdelay}" -o ! "${rootdelay}" -ge 0 ]; then
if [ "${rootdelay}" = "" -o ! "${rootdelay}" -ge 0 ]; then
export rootdelay=10
fi
# We'll wait for the root device, so make sure klibc doesn't
@ -111,7 +111,7 @@ else
/bin/mknod /dev/root b ${BLOCKDEVICE} >/dev/null
export root="/dev/root"
fi
if [ ! -b "${root}" -a ! -L "${root}" ]; then
if [ ! -b "${root}" -a ! -h "${root}" ]; then
err "Unable to detect or create root device '${root}'"
echo "You are being dropped to a recovery shell"
echo " Type 'reboot' to reboot"