summaryrefslogtreecommitdiffstats
path: root/source/n/nfs-utils/rc.nfsd
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/nfs-utils/rc.nfsd')
-rw-r--r--source/n/nfs-utils/rc.nfsd6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/n/nfs-utils/rc.nfsd b/source/n/nfs-utils/rc.nfsd
index f21133829..b43bd3b8c 100644
--- a/source/n/nfs-utils/rc.nfsd
+++ b/source/n/nfs-utils/rc.nfsd
@@ -16,9 +16,9 @@ nfsd_start() {
exit # no uncommented shares in /etc/exports
fi
- # First, make sure the nfsd kernel module is loaded. You can comment this
- # part out if you've built nfsd support directly into the kernel.
- if [ -z "`/sbin/lsmod | grep "^nfsd "`" ]; then
+ # If we do not detect nfsd support built into the kernel (or previously
+ # loaded as a module), we will try to load the nfsd.ko kernel module:
+ if [ ! -r /proc/1/net/rpc/nfsd ]; then
/sbin/modprobe nfsd
fi