]> git.pld-linux.org Git - packages/nfs-utils.git/commitdiff
- mount /proc/fs/nfsd when running on 2.6 kernel
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 5 Sep 2004 22:19:03 +0000 (22:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nfsfs.init -> 1.17

nfsfs.init

index 68bc4d981df0e27ab313e2d31c0f0504b158ab4d..1fb5a5766640a52938adc29e6b8e7881ef1c1d78 100644 (file)
@@ -37,10 +37,14 @@ fi
 # See how we were called.
 case "$1" in
   start)
-       show "Mounting NFS filesystems"
-       busy
-       mount -a -t nfs
-       ok
+       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
        ;;
   stop)
This page took 0.034858 seconds and 4 git commands to generate.