]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/initscripts/init.d/mountfs
core76: Sort exclude file alphabetically.
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / mountfs
index 01ecafde8c7d9471e731e7bff19c8060789d5bc1..284b51dc8d4ef0054eb657bde7837fd2fbb3ded4 100644 (file)
@@ -24,11 +24,9 @@ case "${1}" in
                # Remove fsck-related file system watermarks.
                rm -f /fastboot /forcefsck
 
-               boot_mesg "Recording existing mounts in /etc/mtab..."
+               boot_mesg "Create /etc/mtab..."
                > /etc/mtab
                mount -f / || failed=1
-               mount -f /proc || failed=1
-               mount -f /sys || failed=1
                (exit ${failed})
                evaluate_retval
 
@@ -42,13 +40,14 @@ case "${1}" in
        stop)
                boot_mesg "Syncing discs..."
                sync && sync
+               sleep 2
+               sync && sync
                evaluate_retval
 
                boot_mesg "Unmounting all other currently mounted file systems..."
                umount -a -d -r &>/dev/null
                evaluate_retval
                ;;
-
        *)
                echo "Usage: ${0} {start|stop}"
                exit 1