summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-11 15:14:55 +0000
committerRoy Marples <roy@marples.name>2007-10-11 15:14:55 +0000
commit0f266074995bacc3c9776501e289046d21a47307 (patch)
treead89bf4430046ec5f08b814eaef5319750cc20e9 /init.d
parent77205862e33aa34cc2886f314c026da87f182a7a (diff)
downloadopenrc-0f266074995bacc3c9776501e289046d21a47307.tar.gz
openrc-0f266074995bacc3c9776501e289046d21a47307.tar.bz2
openrc-0f266074995bacc3c9776501e289046d21a47307.tar.xz
Only update mtab if /proc/mounts exists
Diffstat (limited to 'init.d')
-rwxr-xr-xinit.d/checkroot2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/checkroot b/init.d/checkroot
index 087e2c9..959ca0b 100755
--- a/init.d/checkroot
+++ b/init.d/checkroot
@@ -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