- nfsserver.init: remove VERSION_LIST. This is

unnecessary duplication of VERSION_PARAMS

OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=71
This commit is contained in:
Neil Brown 2012-05-02 01:43:09 +00:00 committed by Git OBS Bridge
parent 4195795a21
commit bf6b9f6466
2 changed files with 8 additions and 11 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed May 2 01:42:23 UTC 2012 - nfbrown@suse.com
- nfsserver.init: remove VERSION_LIST. This is
unnecessary duplication of VERSION_PARAMS
-------------------------------------------------------------------
Wed May 2 01:34:51 UTC 2012 - nfbrown@suse.com

View File

@ -175,21 +175,12 @@ case "$1" in
rc_status
fi
VERSION_PARAMS=
if [ "$NFS3_SERVER_SUPPORT" != "no" ]; then
VERSION_LIST="+2 +3 "
else
VERSION_LIST="-2 -3"
if [ "$NFS3_SERVER_SUPPORT" == "no" ]; then
VERSION_PARAMS="--no-nfs-version 2 --no-nfs-version 3"
fi
if [ "$NFS4_SUPPORT" = "yes" ]; then
VERSION_LIST="$VERSION_LIST +4"
else
VERSION_LIST="$VERSION_LIST -4"
if [ "$NFS4_SUPPORT" != "yes" ]; then
VERSION_PARAMS="--no-nfs-version 4"
fi
if [ " `cat /proc/fs/nfsd/threads`" = " 0" ]; then
echo $VERSION_LIST > /proc/fs/nfsd/versions
fi
if [ -n "$NFSV4LEASETIME" -a -f /proc/fs/nfsd/nfsv4leasetime ]; then
echo "$NFSV4LEASETIME" > /proc/fs/nfsd/nfsv4leasetime
fi