aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJeroen Ruigrok van der Werven <asmodai@FreeBSD.org>2000-05-29 12:31:26 +0000
committerJeroen Ruigrok van der Werven <asmodai@FreeBSD.org>2000-05-29 12:31:26 +0000
commit615f500a83d04eb432280fae8d96ce277ecc7345 (patch)
tree82b148d603990b6c90da9c3472001aeb7948df37 /etc
parentc787eb8a72e53bac247db750c871aa0e50c6e258 (diff)
downloadsrc-615f500a83d04eb432280fae8d96ce277ecc7345.tar.gz
src-615f500a83d04eb432280fae8d96ce277ecc7345.zip
Sanitise NFS fs mounting for /usr NFS mounts.
Submitted by: Doug Barton <DougB@gorean.org> Reviewed by: bde
Notes
Notes: svn path=/head/; revision=61065
Diffstat (limited to 'etc')
-rw-r--r--etc/rc6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index f9b9a8f9bec2..c97dd0299de2 100644
--- a/etc/rc
+++ b/etc/rc
@@ -202,11 +202,13 @@ case ${ipv6_enable} in
esac
# Mount NFS filesystems if present in /etc/fstab
-if mount -d -a -t nfs | grep -q nfs >/dev/null 2>&1; then
+case "`mount -d -a -t nfs`" in
+*mount_nfs*)
echo -n "Mounting NFS file systems"
mount -a -t nfs
echo .
-fi
+ ;;
+esac
# Whack the pty perms back into shape.
#