Make localmount and netmount always succeed on non-linux
This commit is contained in:
parent
2a439c85bd
commit
b652752339
@ -15,7 +15,7 @@ depend()
|
|||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
# Mount local filesystems in /etc/fstab.
|
# 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
|
for x in $net_fs_list $extra_net_fs_list; do
|
||||||
types="${types},no${x}"
|
types="${types},no${x}"
|
||||||
done
|
done
|
||||||
@ -28,6 +28,13 @@ start()
|
|||||||
ebegin "Mounting local filesystems"
|
ebegin "Mounting local filesystems"
|
||||||
mount -at "$types"
|
mount -at "$types"
|
||||||
eend $? "Some local filesystem failed to mount"
|
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()
|
stop()
|
||||||
|
@ -23,6 +23,12 @@ start()
|
|||||||
mount -at $fs
|
mount -at $fs
|
||||||
rc=$?
|
rc=$?
|
||||||
ewend $rc "Could not mount all network filesystems"
|
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()
|
stop()
|
||||||
|
Loading…
Reference in New Issue
Block a user