]> Zhao Yanbai Git Server - minix.git/commitdiff
rc: transitional fix for old fstab
authorDavid van Moolenbroek <david@minix3.org>
Tue, 10 Jan 2012 14:05:28 +0000 (15:05 +0100)
committerDavid van Moolenbroek <david@minix3.org>
Tue, 10 Jan 2012 14:05:50 +0000 (15:05 +0100)
etc/rc

diff --git a/etc/rc b/etc/rc
index 804320c54709ef6a0d5adfea2065b914d02c3688..9254e540cf39d61122815bf34c376580769ad03d 100755 (executable)
--- a/etc/rc
+++ b/etc/rc
@@ -56,27 +56,14 @@ edit()
 # /etc/fstab, and fscks and mounts its filesystems.
 mountfstab_poorman()
 {
-    # /etc/fstab lists the root, tmp and usr devices.
-    . $FSTAB
+    echo "WARNING: old fstab format, please upgrade!"
 
-    # Check if the system crashed.
-    if shutdown -C
-    then
-       echo
-       echo "The system was not properly shut down.  Checking file systems."
-       fflag=-f
-    fi
+    # /etc/fstab lists the root, home, and usr devices.
+    . $FSTAB
 
-    if [ -n "$fflag" ]
-    then
-       echo "fsck.mfs / - $root"
-       intr fsck.mfs $fsckopts $root
-       echo "fsck.mfs /usr - $usr"
-       intr fsck.mfs $fsckopts $usr
-       if [ ! -z "$home" ]
-       then    echo "fsck.mfs /home - $home"
-               intr fsck.mfs $fsckopts $home
-       fi
+    intr fsck.mfs $fsckopts $usr
+    if [ ! -z "$home" ]
+    then intr fsck.mfs $fsckopts $home
     fi
 
     # mount /usr
@@ -113,7 +100,6 @@ start)
     test -f /etc/keymap && loadkeys /etc/keymap
 
     # options for fsck. default is -r, which prompts the user for repairs.
-    fsckopts="`sysenv fsckopts`"
     optname=fsckopts
     fsckopts=-p
     if sysenv $optname >/dev/null