From: Stefan Schantl Date: Sat, 4 Apr 2015 11:59:11 +0000 (+0200) Subject: nfs-server: Drop kernel version check from initscript. X-Git-Tag: v2.17-core91~153^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2be0bc4410b7d2f5039eae7b464db7b8ee6564db;p=people%2Fstevee%2Fipfire-2.x.git nfs-server: Drop kernel version check from initscript. As suggested on the bugtracker, the kernel version check completely has been removed. Fixes #10760. --- diff --git a/src/initscripts/init.d/nfs-server b/src/initscripts/init.d/nfs-server index 41055ad5b9..15284e88a3 100644 --- a/src/initscripts/init.d/nfs-server +++ b/src/initscripts/init.d/nfs-server @@ -27,13 +27,9 @@ case "$1" in loadproc /usr/sbin/rpc.rquotad fi - # 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 - evaluate_retval - fi + boot_mesg "Mounting nfsd virtual filesystem..." + /bin/mount -t nfsd none /proc/fs/nfsd 2>&1 > /dev/null + evaluate_retval # Make ceratin that the list is refreshed on # a restart. @@ -62,13 +58,9 @@ case "$1" in /usr/sbin/exportfs -au 2>&1 > /dev/null evaluate_retval - # 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 - evaluate_retval - fi + boot_mesg "Unmounting NFS Virtual Filesystem..." + /bin/umount /proc/fs/nfsd 2>&1 > /dev/null + evaluate_retval # Remove a pid file that isn't done automatically boot_mesg "Removing the rpc.statd pid file if it exists"