nfs-kernel-server: make lockd, statd and mountd bind to fixed ports to make it useabl...
authortripolar <tripolar@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 18 Feb 2010 16:18:39 +0000 (16:18 +0000)
committertripolar <tripolar@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 18 Feb 2010 16:18:39 +0000 (16:18 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@19706 3c298f89-4303-0410-b956-a3cf2f4a3e73

net/nfs-kernel-server/files/nfsd.init

index 6130bec..bf658d0 100644 (file)
@@ -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() {