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=f43eecd5b1664e2b5651ef08d61377c205702890;p=openwrt%2Fsvn-archive%2Fpackages.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 6130bec54..bf658d0a1 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() {