From 2dbfc8443d745399aa24e28d9beaf6c05bfe4683 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Fri, 27 May 2005 15:31:10 +0000 Subject: [PATCH] - change detection of nfs4; load nfs module in nfsfs.init Changed files: nfs.init -> 1.28 nfsfs.init -> 1.25 --- nfs.init | 4 ++-- nfsfs.init | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nfs.init b/nfs.init index f982293..c010c27 100644 --- a/nfs.init +++ b/nfs.init @@ -63,7 +63,7 @@ case "$1" in daemon /usr/sbin/exportfs -r msg_starting "NFS mountd" daemon rpc.mountd $RPCMOUNTOPTIONS - if (grep -q nfs4 /proc/filesystems); then + if (grep -q rpc_pipefs /proc/filesystems); then if [ ! -f /var/lock/subsys/idmapd ]; then msg_starting "NFS idmapd" daemon rpc.idmapd $RPCIDMAPOPTIONS @@ -93,7 +93,7 @@ case "$1" in killproc rpc.mountd msg_stopping "NFS daemon" killproc nfsd -QUIT - if (grep -q nfs4 /proc/filesystems); then + if (grep -q rpc_pipefs /proc/filesystems); then msg_stopping "NFS svcgssd" killproc rpc.svcgssd if [ -f /var/lock/subsys/idmapd -a ! -f /var/lock/subsys/nfsfs ]; then diff --git a/nfsfs.init b/nfsfs.init index 4fc4b5e..edd90a3 100644 --- a/nfsfs.init +++ b/nfsfs.init @@ -39,6 +39,7 @@ case "$1" in start) if [ ! -f /var/lock/subsys/nfsfs ]; then if [ "$NFSDTYPE" != "U" ] && grep -q nfs4 /proc/filesystems; then + modprobe -s nfs > /dev/null 2>&1 if [ "$(kernelverser)" -ge "002006" ]; then grep -q rpc_pipefs /proc/filesystems && \ ! grep -q rpc_pipefs /proc/mounts && \ -- 2.44.0