Lines 11-19
Link Here
|
11 |
local myneed="" myuse="" |
11 |
local myneed="" myuse="" |
12 |
local nfs_mounts=$(awk '!/^[[:space:]]*#/ && ($3=="nfs" || $3=="nfs4") && $4 !~ /\<(noauto|nolock)\>/ { print $0 }' /etc/fstab) |
12 |
local nfs_mounts=$(awk '!/^[[:space:]]*#/ && ($3=="nfs" || $3=="nfs4") && $4 !~ /\<(noauto|nolock)\>/ { print $0 }' /etc/fstab) |
13 |
if [[ -n ${nfs_mounts} ]] ; then |
13 |
if [[ -n ${nfs_mounts} ]] ; then |
14 |
myneed="${myneed} portmap rpc.statd" |
14 |
myneed="${myneed} portmap rpc.statd rpc.idmapd rpc.gssd" |
15 |
else |
15 |
else |
16 |
myuse="${myuse} portmap rpc.statd" |
16 |
myuse="${myuse} portmap rpc.statd rpc.idmapd rpc.gssd" |
17 |
fi |
17 |
fi |
18 |
need net ${myneed} |
18 |
need net ${myneed} |
19 |
use afs-client openafs-client amd autofs nfs nfsmount ${myuse} |
19 |
use afs-client openafs-client amd autofs nfs nfsmount ${myuse} |
Lines 61-67
Link Here
|
61 |
rcfilesystems=${rcfilesystems// /,} # convert to comma-separated |
61 |
rcfilesystems=${rcfilesystems// /,} # convert to comma-separated |
62 |
|
62 |
|
63 |
ebegin "Unmounting network filesystems" |
63 |
ebegin "Unmounting network filesystems" |
64 |
[[ -z $(umount -art ${rcfilesystems} 2>&1) ]] |
64 |
[[ -z $(umount -art ${rcfilesystems} 2>&1) && $? == 0 ]] |
65 |
eend $? "Failed to simply unmount filesystems" |
65 |
eend $? "Failed to simply unmount filesystems" |
66 |
[[ $? == 0 ]] && return 0 |
66 |
[[ $? == 0 ]] && return 0 |
67 |
|
67 |
|