From: Peter Wagner <​tripolar@gmx.at> Date: Thu, 18 Feb 2010 16:18:39 +0000 (+0000) Subject: nfs-kernel-server: make lockd, statd and mountd bind to fixed ports to make it useabl... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=04c385eeb8a00ab1f3565279dbd109d2e98c4a70;p=openwrt%2Fsvn-archive%2Farchive.git nfs-kernel-server: make lockd, statd and mountd bind to fixed ports to make it useable with a firewall SVN-Revision: 19706 --- diff --git a/net/nfs-kernel-server/files/nfsd.init b/net/nfs-kernel-server/files/nfsd.init index 6130bec542..bf658d0a1a 100644 --- a/net/nfs-kernel-server/files/nfsd.init +++ b/net/nfs-kernel-server/files/nfsd.init @@ -12,10 +12,11 @@ start() { mkdir -p $LOCK_D touch $NFS_D/rmtab - /usr/sbin/rpc.statd + sysctl -w fs.nfs.nlm_tcpport=32777 fs.nfs.nlm_udpport=32777 > /dev/null + /usr/sbin/rpc.statd -p 32778 -o 32779 /usr/sbin/exportfs -r /usr/sbin/rpc.nfsd - /usr/sbin/rpc.mountd + /usr/sbin/rpc.mountd -p 32780 } stop() {