2 # Copyright 1999-2013 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
6 [ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs
10 if [ -e /etc/fstab ] ; then
12 awk '!/^[[:space:]]*#/ && ($3 == "nfs" || $3 == "nfs4") {
15 if ($4 ~ /sec=(krb|spkm)/)
18 END { print idmapd " " gssd }
23 need portmap rpc.statd ${myneed}
24 use ypbind dns rpc.idmapd rpc.gssd
28 if [ -x /usr/sbin/sm-notify ] ; then
29 ebegin "Starting NFS sm-notify"
30 /usr/sbin/sm-notify ${OPTS_SMNOTIFY}
34 # Make sure nfs support is loaded in the kernel #64709
35 if [ -e /proc/modules ] && ! grep -qs 'nfs$' /proc/filesystems ; then
39 ebegin "Mounting NFS filesystems"
45 ebegin "Unmounting NFS filesystems"