Merge branch 'nfs-server-fix' into next

This commit is contained in:
Stefan Schantl
2015-04-03 19:19:34 +02:00
2 changed files with 5 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = nfs
PAK_VER = 5
PAK_VER = 6
DEPS = "portmap"

View File

@@ -27,8 +27,8 @@ case "$1" in
loadproc /usr/sbin/rpc.rquotad
fi
# NFSD support only in 2.6 kernel
/bin/uname -r | /bin/grep "2.6" 2>&1 > /dev/null
# NFSD support requires kernel 2.6 or newer.
/bin/uname -r | /bin/grep -E "^2.6|^3" 2>&1 > /dev/null
if [ $? = 0 ]; then
boot_mesg "Mounting nfsd virtual filesystem..."
/bin/mount -t nfsd none /proc/fs/nfsd 2>&1 > /dev/null
@@ -62,8 +62,8 @@ case "$1" in
/usr/sbin/exportfs -au 2>&1 > /dev/null
evaluate_retval
# NFSD support only in 2.6 kernel
/bin/uname -r | /bin/grep "2.6" 2>&1 > /dev/null
# NFSD support requires kernel 2.6 or newer.
/bin/uname -r | /bin/grep -E "^2.6|^3" 2>&1 > /dev/null
if [ $? = 0 ]; then
boot_mesg "Unmounting NFS Virtual Filesystem..."
/bin/umount /proc/fs/nfsd 2>&1 > /dev/null