diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-03-24 10:14:43 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-03-24 10:14:43 +0000 |
commit | 4330b400b5d7a40ec35cc64fa909fa86cf1743ce (patch) | |
tree | d29f847580c73f9de0eaa81fc26e74f59a75e7bf /net-fs/nfs-utils/files | |
parent | Stable on ppc64; bug #171545 (diff) | |
download | historical-4330b400b5d7a40ec35cc64fa909fa86cf1743ce.tar.gz historical-4330b400b5d7a40ec35cc64fa909fa86cf1743ce.tar.bz2 historical-4330b400b5d7a40ec35cc64fa909fa86cf1743ce.zip |
Mount nfsd filesystem at /proc/fs/nfsd rather than /proc/fs/nfs.
Package-Manager: portage-2.1.2.2
Diffstat (limited to 'net-fs/nfs-utils/files')
-rwxr-xr-x | net-fs/nfs-utils/files/nfs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net-fs/nfs-utils/files/nfs b/net-fs/nfs-utils/files/nfs index 5d9adf0ed976..1c37706bf7bc 100755 --- a/net-fs/nfs-utils/files/nfs +++ b/net-fs/nfs-utils/files/nfs @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs,v 1.13 2007/01/10 00:49:52 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs,v 1.14 2007/03/24 10:14:43 vapier Exp $ #--------------------------------------------------------------------------- # This script starts/stops the following @@ -151,10 +151,10 @@ start() { 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 + if grep -qs nfsd /proc/filesystems ; then + if ! grep -qs "^nfsd[[:space:]]/proc/fs/nfsd[[:space:]]" /proc/mounts ; then ebegin "Mounting nfsd filesystem in /proc" - mount -t nfsd nfsd /proc/fs/nfs + mount -t nfsd nfsd /proc/fs/nfsd eend $? "Error mounting nfsd filesystem in /proc" fi fi |