#!/sbin/runscript start() { if [ "`cat /proc/mounts | grep " / " | cut -d" " -f3`" != "reiserfs" ]; then ebegin "Remounting root filesystem read-only (if necessary)" mount / -o remount,ro eend $? ebegin "Checking root filesystem" fsck -a if [ $? -eq 0 ] then eend 0 elif [ $? -eq 1 ] then eend 1 "Filesystem repaired" else eend 2 "Filesystem couldn't be fixed :(" /sbin/sulogin $CONSOLE reboot -f fi fi ebegin "Remounting root filesystem read/write" mount / -o remount,rw eend $? return }