nfs-utils/nfs-lock.preconfig
Steve Dickson eff46c41a5 Cleaned up the .preconfig and .postconfig files per code review request.
Signed-off-by: Steve Dickson <steved@redhat.com>
2011-08-03 15:02:59 -04:00

18 lines
384 B
Bash

#!/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
#
if [ -n "$LOCKD_TCPPORT" ]; then
/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
fi
if [ -n "$LOCKD_UDPPORT" ]; then
/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
fi