aboutsummaryrefslogtreecommitdiff
path: root/init.d/netmount.in
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2015-10-01 17:16:14 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2015-10-01 17:33:43 -0500
commitdac5966ca40610797d2b2aabef17154ca3dc20af (patch)
treeaebc18bcf866017c3d2e700626b2590aebe6879f /init.d/netmount.in
parent3b6a6df4b5b818e576a88444632d5c73cffd1c57 (diff)
Revert "local/netmount: remove uses of -O [no]_netdev"
This reverts commit 2a439c85bd69efc14847b4397bd6783cac051405. There is another use case for -O involving iscsi, so we can't remove it.
Diffstat (limited to 'init.d/netmount.in')
-rw-r--r--init.d/netmount.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.d/netmount.in b/init.d/netmount.in
index d9cf9c56..d1f3cffc 100644
--- a/init.d/netmount.in
+++ b/init.d/netmount.in
@@ -22,6 +22,10 @@ start()
ebegin "Mounting network filesystems"
mount -at $fs
rc=$?
+ if [ "$RC_UNAME" = Linux ]; then
+ mount -a -O _netdev
+ rc=$?
+ fi
ewend $rc "Could not mount all network filesystems"
if [ "$RC_UNAME" != Linux ]; then
rc=0
@@ -53,5 +57,9 @@ stop()
retval=$?
eoutdent
+ if [ "$RC_UNAME" = Linux ]; then
+ umount -a -O _netdev
+ retval=$?
+ fi
eend $retval "Failed to unmount network filesystems"
}