From b652752339690e10a55ae50d046f4cf2a98daf1a Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 20 Aug 2015 19:01:23 -0500 Subject: Make localmount and netmount always succeed on non-linux --- init.d/localmount.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'init.d/localmount.in') 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() -- cgit v1.2.3