--- netmount 2004-04-21 13:09:18.000000000 -0400 +++ /etc/init.d/netmount 2004-06-08 15:07:56.926547856 -0400 @@ -7,16 +7,19 @@ local myneed="net" local myuse="" - # # Only have Portmap as a dependency if there is a nfs mount in fstab # that should be mounted at boot time. Also filter out comments. - # local nfsmounts="$(awk '!/^#/ && $3 == "nfs" && $4 !~ /noauto/ { print $0 }' /etc/fstab)" - - if [ -n "${nfsmounts}" ] + local nfs4mounts="$(awk '!/^#/ && $3 == "nfs4" && $4 !~ /noauto/ { print $0 }' /etc/fstab)" + + if [ -n "${nfsmounts}${nfs4mounts}" ] + then + myneed="${myneed} portmap" + myuse="${myuse} nfs" + fi + if [ -n "${nfs4mounts}" ] && [ -x /sbin/idmapd ] then - local myneed="${myneed} portmap" - local myuse="${myuse} nfs" + myneed="${myneed} idmapd" fi need ${myneed}