aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2003-10-04 07:41:42 +0000
committerJudd Vinet <judd@archlinux.org>2003-10-04 07:41:42 +0000
commitbe8b6f59470b8779c3d4e10b3045507920931896 (patch)
tree72e6384f9200f343af0bf9681b980faed9970b40 /rc.sysinit
parent3a161b0240eb8eedcc8affb5e0c5b92d058619d9 (diff)
downloadinitscripts-be8b6f59470b8779c3d4e10b3045507920931896.tar.xz
added -x check to /sbin/fsck, so reiserfs users can uninstall e2fsprogs without script errors
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit46
1 files changed, 24 insertions, 22 deletions
diff --git a/rc.sysinit b/rc.sysinit
index bd1d590..4ee2693 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -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 /