diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-10-09 18:42:47 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-10-09 18:42:47 +0000 |
commit | d80576562efb41d07d326abfba0089344f84e339 (patch) | |
tree | 8457c020d8dc4513c70b69aa436582cdc2efd3c9 /net-fs | |
parent | Added x11-terms/mrxvt:xgetdefault. (diff) | |
download | gentoo-2-d80576562efb41d07d326abfba0089344f84e339.tar.gz gentoo-2-d80576562efb41d07d326abfba0089344f84e339.tar.bz2 gentoo-2-d80576562efb41d07d326abfba0089344f84e339.zip |
autoload the nfsd module if need be #64709
Diffstat (limited to 'net-fs')
-rw-r--r-- | net-fs/nfs-utils/files/nfs-5 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net-fs/nfs-utils/files/nfs-5 b/net-fs/nfs-utils/files/nfs-5 index 2e6065e3a65d..637106c39e37 100644 --- a/net-fs/nfs-utils/files/nfs-5 +++ b/net-fs/nfs-utils/files/nfs-5 @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs-5,v 1.3 2004/07/14 23:36:38 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs-5,v 1.4 2004/10/09 18:42:47 vapier Exp $ #--------------------------------------------------------------------------- # This script starts/stops the following @@ -64,6 +64,11 @@ waitfor_exportfs() { } start() { + # Make sure nfs support is loaded in the kernel #64709 + if [ -e /proc/modules ] ; then + modprobe nfsd &> /dev/null + fi + # This is the new "kernel 2.6 way" to handle the exports file if grep -q nfsd /proc/filesystems &>/dev/null; then if ! grep -q "nfsd /proc/fs/nfs" /proc/mounts &>/dev/null; then |