aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'init.d')
-rwxr-xr-xinit.d/checkfs9
-rwxr-xr-xinit.d/checkroot4
2 files changed, 4 insertions, 9 deletions
diff --git a/init.d/checkfs b/init.d/checkfs
index 2f9ead02..da3dc39f 100755
--- a/init.d/checkfs
+++ b/init.d/checkfs
@@ -51,13 +51,8 @@ do_checkfs() {
if [ ${retval} -gt 3 ] ; then
eend 2 "Fsck could not correct all errors, manual repair needed"
- if [ "${RC_SYS}" = "VPS" ] ; then
- halt -f
- elif [ -x /sbin/sulogin ] ; then
- sulogin "${CONSOLE}"
- else
- return 1
- fi
+ rc-abort
+ exit 1
fi
fi
diff --git a/init.d/checkroot b/init.d/checkroot
index 2fa22ec5..03741ae8 100755
--- a/init.d/checkroot
+++ b/init.d/checkroot
@@ -104,8 +104,8 @@ start() {
retval=$?
else
eend 2 "Filesystem couldn't be fixed :("
- [ "${RC_UNAME}" = "Linux" ] || return 1
- sulogin "${CONSOLE}"
+ rc-abort
+ exit 1
fi
if [ ${retval} != "0" ] ; then
einfo "Unmounting filesystems"