aboutsummaryrefslogtreecommitdiffstats
path: root/packages/initscripts/initscripts-1.0/checkroot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/initscripts/initscripts-1.0/checkroot.sh')
-rwxr-xr-xpackages/initscripts/initscripts-1.0/checkroot.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/initscripts/initscripts-1.0/checkroot.sh b/packages/initscripts/initscripts-1.0/checkroot.sh
index e5aa9aaf99..8ad62622ff 100755
--- a/packages/initscripts/initscripts-1.0/checkroot.sh
+++ b/packages/initscripts/initscripts-1.0/checkroot.sh
@@ -21,7 +21,6 @@ test -x /sbin/update && update
#
# Read /etc/fstab.
#
-exec 9>&0 </etc/fstab
rootmode=rw
rootopts=rw
test "$ENABLE_ROOTFS_FSCK" = yes && rootcheck="yes" || rootcheck="no"
@@ -81,8 +80,7 @@ do
;;
esac
fi
-done
-exec 0>&9 9>&-
+done < /etc/fstab
#
# Activate the swap device(s) in /etc/fstab. This needs to be done