]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - debian/nfs-kernel-server.init
Use rpcbind's rpcinfo everywhere (Closes: #707589).
[nfs-utils.git] / debian / nfs-kernel-server.init
index d00b2ec4fbe238a4a1e68867b068d97fde3f321b..7ce79f5a814a33d351b5abb9eeb8cf678a6eb234 100644 (file)
@@ -90,7 +90,7 @@ case "$1" in
                log_progress_msg "nfsd"
                
                # See if rpcbind is running
                log_progress_msg "nfsd"
                
                # See if rpcbind is running
-               /usr/sbin/rpcinfo -p >/dev/null 2>&1
+               $PREFIX/sbin/rpcinfo -p >/dev/null 2>&1
                RET=$?
                if [ $RET != 0 ]; then
                    echo
                RET=$?
                if [ $RET != 0 ]; then
                    echo
@@ -117,7 +117,7 @@ case "$1" in
                    }
                fi
 
                    }
                fi
 
-               $PREFIX/bin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
+               $PREFIX/sbin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
                    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"
 
                [ -z "$ClearAddr" ] || echo "nfsd 127.0.0.1 1" >/proc/net/rpc/auth.unix.ip/channel
                    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"
 
                [ -z "$ClearAddr" ] || echo "nfsd 127.0.0.1 1" >/proc/net/rpc/auth.unix.ip/channel