Fix booting into single user mode

Due to a shift, mountfstab was unable to locate the fstab file and
mount other file systems causing a number of errors to be generated.
This commit is contained in:
Thomas Veerman 2012-04-13 13:52:48 +00:00
parent d729ecb11b
commit 6659ae1fc3
2 changed files with 4 additions and 5 deletions

7
etc/rc
View file

@ -94,7 +94,6 @@ esac
case $action in
start)
echo -n "Multiuser startup in progress ..."
# National keyboard?
test -f /etc/keymap && loadkeys /etc/keymap
@ -110,7 +109,6 @@ start)
then
up -n is -period 5HZ
fi
echo
# Set timezone.
export TZ=GMT0
@ -175,10 +173,13 @@ start)
if [ "$sflag" ]
then
echo "Single user."
echo "Single user. Press ^D to resume multiuser startup."
intr sh
echo
fi
echo "Multiuser startup in progress ..."
case "`printroot -r`":$bootcd in
/dev/ram:)
# Remove boot-only things to make space,

View file

@ -1,8 +1,6 @@
mountfstab()
{
shift `expr $OPTIND - 1`
fstabfile="$1"
if [ ! -f $fstabfile ]