nfs-kernel-server: make lockd, statd and mountd bind to fixed ports to make it useable with a firewall

git-svn-id: svn://svn.openwrt.org/openwrt/packages@19706 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
tripolar 2010-02-18 16:18:39 +00:00
parent 1e28de24b4
commit bc84a9bde4

View File

@ -12,10 +12,11 @@ start() {
mkdir -p $LOCK_D mkdir -p $LOCK_D
touch $NFS_D/rmtab 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/exportfs -r
/usr/sbin/rpc.nfsd /usr/sbin/rpc.nfsd
/usr/sbin/rpc.mountd /usr/sbin/rpc.mountd -p 32780
} }
stop() { stop() {