aboutsummaryrefslogtreecommitdiff
path: root/init.d/netmount.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/netmount.in')
-rw-r--r--init.d/netmount.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/init.d/netmount.in b/init.d/netmount.in
index f7237f13..0febde2a 100644
--- a/init.d/netmount.in
+++ b/init.d/netmount.in
@@ -42,8 +42,13 @@ start()
rc=$?
fi
ewend $rc "Could not mount all network filesystems"
- if [ "$RC_UNAME" != Linux ]; then
+ if [ -z "$critical_mounts" ]; then
rc=0
+ else
+ for x in ${critical_mounts}; do
+ mountinfo -q $x || critical=x
+ done
+ [-z "$critical" ] && rc=0
fi
return $rc
}