#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
-# chkconfig: 345 15 83
+# chkconfig: 345 16 80
# description: Mounts and unmounts all Network File System (NFS) \
# mount points.
#
start() {
if [ ! -f /var/lock/subsys/nfsfs ]; then
- if ! grep -q rpc_pipefs /proc/mounts ; then
- modprobe -s sunrpc > /dev/null 2>&1
- run_cmd "Mounting /var/lib/nfs/rpc_pipefs filesystem" \
- mount -t rpc_pipefs rpc_pipefs /var/lib/nfs/rpc_pipefs
- fi
-
# Set the ports lockd should listen on
if [ -n "$LOCKD_TCPPORT" ]; then
/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
fi
# Special case /usr first
- if awk '{ if ($2 == "/usr" && $3 ~ /^nfs(4$|$)/ && $4 !~ /noauto/) exit 1}' /etc/fstab ; then
+ if ! awk '{ if ($2 == "/usr" && $3 ~ /^nfs(4$|$)/ && $4 !~ /noauto/) exit 1}' /etc/fstab ; then
run_cmd "Mounting /usr filesystem" mount /usr
# In case of /usr over NFS idmapd, gssd and lockd may not start
# check if they're running and try to start them if not