aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d/localmount.in8
-rw-r--r--init.d/netmount.in8
2 files changed, 12 insertions, 4 deletions
diff --git a/init.d/localmount.in b/init.d/localmount.in
index 96ccc44b..b7de0d82 100644
--- a/init.d/localmount.in
+++ b/init.d/localmount.in
@@ -41,9 +41,13 @@ start()
rc=0
else
for x in ${critical_mounts}; do
- mountinfo -q $x || critical=x
+ fstabinfo -q $x || continue
+ if ! mountinfo -q $x; then
+ critical=x
+ eerror "Failed to mount $x"
+ fi
done
- [-z "$critical" ] && rc=0
+ [ -z "$critical" ] && rc=0
fi
return $rc
}
diff --git a/init.d/netmount.in b/init.d/netmount.in
index 0febde2a..ede4d329 100644
--- a/init.d/netmount.in
+++ b/init.d/netmount.in
@@ -46,9 +46,13 @@ start()
rc=0
else
for x in ${critical_mounts}; do
- mountinfo -q $x || critical=x
+ fstabinfo -q $x || continue
+ if ! mountinfo -q $x; then
+ critical=x
+ eerror "Failed to mount $x"
+ fi
done
- [-z "$critical" ] && rc=0
+ [ -z "$critical" ] && rc=0
fi
return $rc
}