diff options
author | Judd Vinet <judd@archlinux.org> | 2003-10-04 07:41:42 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2003-10-04 07:41:42 +0000 |
commit | be8b6f59470b8779c3d4e10b3045507920931896 (patch) | |
tree | 72e6384f9200f343af0bf9681b980faed9970b40 /rc.sysinit | |
parent | 3a161b0240eb8eedcc8affb5e0c5b92d058619d9 (diff) |
added -x check to /sbin/fsck, so reiserfs users can uninstall e2fsprogs without script errors
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 46 |
1 files changed, 24 insertions, 22 deletions
@@ -31,29 +31,31 @@ status "Activating Swap" /sbin/swapon -a status "Mounting Root Read-only" /bin/mount -n -o remount,ro / -stat_busy "Checking Filesystems" -/sbin/fsck -A -T -C -a -if [ $? -gt 1 ]; then - stat_fail - echo - echo "***************** FILESYSTEM CHECK FAILED ****************" - echo "* *" - echo "* Please repair manually and reboot. Note that the root *" - echo "* file system is currently mounted read-only. To remount *" - echo "* it read-write type: mount -n -o remount,rw / *" - echo "* When you exit the maintainance shell the system will *" - echo "* reboot automatically. *" - echo "* *" - echo "************************************************************" - echo - /sbin/sulogin -p - echo "Automatic reboot in progress..." - /bin/umount -a - /bin/mount -n -o remount,ro / - /sbin/reboot -f - exit 0 +if [ -x /sbin/fsck ]; then + stat_busy "Checking Filesystems" + /sbin/fsck -A -T -C -a + if [ $? -gt 1 ]; then + stat_fail + echo + echo "***************** FILESYSTEM CHECK FAILED ****************" + echo "* *" + echo "* Please repair manually and reboot. Note that the root *" + echo "* file system is currently mounted read-only. To remount *" + echo "* it read-write type: mount -n -o remount,rw / *" + echo "* When you exit the maintainance shell the system will *" + echo "* reboot automatically. *" + echo "* *" + echo "************************************************************" + echo + /sbin/sulogin -p + echo "Automatic reboot in progress..." + /bin/umount -a + /bin/mount -n -o remount,ro / + /sbin/reboot -f + exit 0 + fi + stat_done fi -stat_done stat_busy "Mounting Local Filesystems" /bin/mount -n -o remount,rw / |