Only update mtab if /proc/mounts exists

This commit is contained in:
Roy Marples 2007-10-11 15:14:55 +00:00
parent 77205862e3
commit 0f26607499

View File

@ -131,7 +131,7 @@ start() {
fi
# Only Linux has mtab
[ "${RC_UNAME}" = "Linux" ] && do_mtab
[ "${RC_UNAME}" = "Linux" -a -e /proc/mounts ] && do_mtab
# If the user's /dev/null or /dev/console are missing, we
# should help them out and explain how to rectify the situation