aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit11
1 files changed, 10 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 5ff23530..fb850618 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -344,7 +344,7 @@ fi
update_boot_stage RCkernelparam
sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
-if [ "$CONSOLETYPE" = "vt" -a -x /bin/loadkeys ]; then
+if [ -x /bin/loadkeys ]; then
KEYTABLE=
KEYMAP=
if [ -f /etc/sysconfig/console/default.kmap ]; then
@@ -447,6 +447,15 @@ elif [ -f /.autofsck ]; then
if [ "$AUTOFSCK_DEF_CHECK" = "yes" ]; then
AUTOFSCK_OPT="$AUTOFSCK_OPT -f"
fi
+ if [ -n "$AUTOFSCK_SINGLEUSER" ]; then
+ echo
+ echo $"*** Warning -- the system did not shut down cleanly. "
+ echo $"*** Dropping you to a shell; the system will continue"
+ echo $"*** when you leave the shell."
+ [ -n "$SELINUX_STATE" ] && echo "0" > $selinuxfs/enforce
+ sulogin
+ [ -n "$SELINUX_STATE" ] && echo "1" > $selinuxfs/enforce
+ fi
fsckoptions="$AUTOFSCK_OPT $fsckoptions"
fi