]> git.pld-linux.org Git - packages/nfs-utils.git/commitdiff
- RPCMOUNTOPTIONS moved to start
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 2 Oct 2006 19:59:12 +0000 (19:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nfs.init -> 1.35

nfs.init

index 87f26bd70632f57a2b94c3bdf29aac38a41bf03b..1750e6f6ab02e3607b588c454753ffc15aba0c0d 100644 (file)
--- a/nfs.init
+++ b/nfs.init
@@ -33,10 +33,6 @@ fi
 [ -x /usr/sbin/rpc.mountd ] || exit 0
 [ -f /etc/exports ] || exit 0
 
-if ! is_yes "$NFS4" ; then
-       RPCMOUNTOPTIONS="$RPCMOUNTOPTIONS --no-nfs-version 4"
-fi
-
 start() {
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/nfs ]; then
@@ -47,6 +43,10 @@ start() {
                        fi
                fi
 
+               if ! is_yes "$NFS4" ; then
+                       RPCMOUNTOPTIONS="$RPCMOUNTOPTIONS --no-nfs-version 4"
+               fi
+
                # Start daemons.
                modprobe -s nfsd > /dev/null 2>&1
                if [ "$(kernelverser)" -ge "002006" ]; then
This page took 0.162588 seconds and 4 git commands to generate.