mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
nfs-server: Drop kernel version check from initscript.
As suggested on the bugtracker, the kernel version check completely has been removed. Fixes #10760.
This commit is contained in:
@@ -27,13 +27,9 @@ case "$1" in
|
|||||||
loadproc /usr/sbin/rpc.rquotad
|
loadproc /usr/sbin/rpc.rquotad
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# NFSD support requires kernel 2.6 or newer.
|
boot_mesg "Mounting nfsd virtual filesystem..."
|
||||||
/bin/uname -r | /bin/grep -E "^2.6|^3" 2>&1 > /dev/null
|
/bin/mount -t nfsd none /proc/fs/nfsd 2>&1 > /dev/null
|
||||||
if [ $? = 0 ]; then
|
evaluate_retval
|
||||||
boot_mesg "Mounting nfsd virtual filesystem..."
|
|
||||||
/bin/mount -t nfsd none /proc/fs/nfsd 2>&1 > /dev/null
|
|
||||||
evaluate_retval
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Make ceratin that the list is refreshed on
|
# Make ceratin that the list is refreshed on
|
||||||
# a restart.
|
# a restart.
|
||||||
@@ -62,13 +58,9 @@ case "$1" in
|
|||||||
/usr/sbin/exportfs -au 2>&1 > /dev/null
|
/usr/sbin/exportfs -au 2>&1 > /dev/null
|
||||||
evaluate_retval
|
evaluate_retval
|
||||||
|
|
||||||
# NFSD support requires kernel 2.6 or newer.
|
boot_mesg "Unmounting NFS Virtual Filesystem..."
|
||||||
/bin/uname -r | /bin/grep -E "^2.6|^3" 2>&1 > /dev/null
|
/bin/umount /proc/fs/nfsd 2>&1 > /dev/null
|
||||||
if [ $? = 0 ]; then
|
evaluate_retval
|
||||||
boot_mesg "Unmounting NFS Virtual Filesystem..."
|
|
||||||
/bin/umount /proc/fs/nfsd 2>&1 > /dev/null
|
|
||||||
evaluate_retval
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove a pid file that isn't done automatically
|
# Remove a pid file that isn't done automatically
|
||||||
boot_mesg "Removing the rpc.statd pid file if it exists"
|
boot_mesg "Removing the rpc.statd pid file if it exists"
|
||||||
|
|||||||
Reference in New Issue
Block a user