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} rpcbind rpc.statd" |
15 |
else |
15 |
else |
16 |
myuse="${myuse} portmap rpc.statd" |
16 |
myuse="${myuse} rpcbind rpc.statd" |
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 41-47
Link Here
|
41 |
# This is to fix "hang" problems for new users who do not |
41 |
# This is to fix "hang" problems for new users who do not |
42 |
# add portmap to the default runlevel. |
42 |
# add portmap to the default runlevel. |
43 |
local nfs_mounts=$(awk '!/^[[:space:]]*#/ && ($3=="nfs" || $3=="nfs4") && $4 !~ /\<(noauto|nolock)\>/ { print $0 }' /etc/fstab) |
43 |
local nfs_mounts=$(awk '!/^[[:space:]]*#/ && ($3=="nfs" || $3=="nfs4") && $4 !~ /\<(noauto|nolock)\>/ { print $0 }' /etc/fstab) |
44 |
if ! service_started portmap && [[ -n ${nfs_mounts} ]] ; then |
44 |
if ! service_started rpcbind && [[ -n ${nfs_mounts} ]] ; then |
45 |
remove_net_fs nfs nfs4 |
45 |
remove_net_fs nfs nfs4 |
46 |
fi |
46 |
fi |
47 |
fi |
47 |
fi |