From 733f4f64918598fff0ebccb850fda543c61aa3e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Mon, 6 Sep 2004 09:14:59 +0000 Subject: [PATCH] - move nfsd fs mounting to proper script, thanks wiget Changed files: nfs.init -> 1.20 nfsfs.init -> 1.18 --- nfs.init | 6 ++++++ nfsfs.init | 7 ------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/nfs.init b/nfs.init index fe49700..8472bd4 100644 --- a/nfs.init +++ b/nfs.init @@ -50,6 +50,12 @@ case "$1" in msg_starting "NFS daemon" daemon rpc.nfsd else + modprobe -s nfsd > /dev/null 2>&1 + if [ "$(kernelverser)" -ge "002006" ] && \ + grep -q nfsd /proc/filesystems && \ + ! grep -q nfsd /proc/mounts; then + run_cmd "Mounting /proc/fs/nfsd filesystem" mount -t nfsd nfsd /proc/fs/nfsd + fi msg_starting "NFS" daemon /usr/sbin/exportfs -r msg_starting "NFS mountd" diff --git a/nfsfs.init b/nfsfs.init index 1fb5a57..a4d91d6 100644 --- a/nfsfs.init +++ b/nfsfs.init @@ -37,13 +37,6 @@ fi # See how we were called. case "$1" in start) - modprobe -s nfsd > /dev/null 2>&1 - - if [ "$(kernelverser)" -ge "002006" ] && \ - grep -q nfsd /proc/filesystems && \ - ! grep -q nfsd /proc/mounts; then - run_cmd "Mounting /proc/fs/nfsd filesystem" mount -t nfsd nfsd /proc/fs/nfsd - fi run_cmd "Mounting NFS filesystems" mount -a -t nfs touch /var/lock/subsys/nfsfs ;; -- 2.44.0