2011-08-03 10:09:46 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. /etc/sysconfig/nfs
|
|
|
|
|
|
|
|
# Make sure lockd is loaded
|
|
|
|
/sbin/modprobe -q lockd $LOCKDARG
|
|
|
|
|
|
|
|
# See if the kernel lockd should start up
|
|
|
|
# listening on a particular port
|
|
|
|
#
|
2011-08-03 19:02:59 +00:00
|
|
|
if [ -n "$LOCKD_TCPPORT" ]; then
|
2011-08-03 10:09:46 +00:00
|
|
|
/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
|
2011-08-03 19:02:59 +00:00
|
|
|
fi
|
|
|
|
if [ -n "$LOCKD_UDPPORT" ]; then
|
2011-08-03 10:09:46 +00:00
|
|
|
/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
|
|
|
|
fi
|
|
|
|
|