--- /etc/init.d/nfs.old 2005-04-02 15:57:20 +0400 +++ /etc/init.d/nfs.old 2006-07-07 19:44:41 +0400 @@ -92,7 +92,9 @@ [ -d /sys/class ] && { [ -f "$NFSDFS/exports" ] || mount -t nfsd none "$NFSDFS" } - action $"Starting NFS daemon:" $NFSD ${NFSDCOUNT:-8} + [ -n "$NFSD_PORT" ] && \ + NFSD_OPTIONS="$NFSD_OPTIONS -p $NFSD_PORT" + action $"Starting NFS daemon:" $NFSD $NFSD_OPTIONS ${NFSDCOUNT:-8} } stop_mountd()