diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-08-20 19:01:23 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-08-21 12:21:31 -0500 |
commit | b652752339690e10a55ae50d046f4cf2a98daf1a (patch) | |
tree | 948de24bbc952269e8272081c6adf88e57dc59b7 | |
parent | 2a439c85bd69efc14847b4397bd6783cac051405 (diff) |
Make localmount and netmount always succeed on non-linux
-rw-r--r-- | init.d/localmount.in | 9 | ||||
-rw-r--r-- | init.d/netmount.in | 6 |
2 files changed, 14 insertions, 1 deletions
diff --git a/init.d/localmount.in b/init.d/localmount.in index 9d05ebcf..7b947903 100644 --- a/init.d/localmount.in +++ b/init.d/localmount.in @@ -15,7 +15,7 @@ depend() start() { # Mount local filesystems in /etc/fstab. - local types="noproc" x= + local types="noproc" x= rc= for x in $net_fs_list $extra_net_fs_list; do types="${types},no${x}" done @@ -28,6 +28,13 @@ start() ebegin "Mounting local filesystems" mount -at "$types" eend $? "Some local filesystem failed to mount" + rc=$? + if [ "$RC_UNAME" != Linux ]; then + rc=0 + elif [ "$rc" = 64 ]; then + rc=0 + fi + return $rc } stop() diff --git a/init.d/netmount.in b/init.d/netmount.in index 99db1858..9f8537d1 100644 --- a/init.d/netmount.in +++ b/init.d/netmount.in @@ -23,6 +23,12 @@ start() mount -at $fs rc=$? ewend $rc "Could not mount all network filesystems" + if [ "$RC_UNAME" != Linux ]; then + rc=0 + elif [ "$rc" = 64 ]; then + rc=0 + fi + return $rc } stop() |