--- netmount.old 2011-01-11 21:48:57.000000000 +0100 +++ netmount 2011-04-06 20:13:15.008937157 +0200 @@ -11,9 +11,9 @@ local myneed="" myuse="" local nfs_mounts=$(awk '!/^[[:space:]]*#/ && ($3=="nfs" || $3=="nfs4") && $4 !~ /\<(noauto|nolock)\>/ { print $0 }' /etc/fstab) if [[ -n ${nfs_mounts} ]] ; then - myneed="${myneed} portmap rpc.statd" + myneed="${myneed} rpcbind rpc.statd" else - myuse="${myuse} portmap rpc.statd" + myuse="${myuse} rpcbind rpc.statd" fi need net ${myneed} use afs-client openafs-client amd autofs nfs nfsmount ${myuse} @@ -41,7 +41,7 @@ # This is to fix "hang" problems for new users who do not # add portmap to the default runlevel. local nfs_mounts=$(awk '!/^[[:space:]]*#/ && ($3=="nfs" || $3=="nfs4") && $4 !~ /\<(noauto|nolock)\>/ { print $0 }' /etc/fstab) - if ! service_started portmap && [[ -n ${nfs_mounts} ]] ; then + if ! service_started rpcbind && [[ -n ${nfs_mounts} ]] ; then remove_net_fs nfs nfs4 fi fi