aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Moschuk <dan@FreeBSD.org>2000-03-25 16:17:53 +0000
committerDan Moschuk <dan@FreeBSD.org>2000-03-25 16:17:53 +0000
commit8e5649e4abe85880dfcf2138dfebeec0e0bd6902 (patch)
tree9b46e4bb0b99e5e9557ecf31856d2d6b0049ed34
parent2bf98c0933947014ff665c354f4af5c349c5859c (diff)
Notes
-rw-r--r--etc/rc10
1 files changed, 6 insertions, 4 deletions
diff --git a/etc/rc b/etc/rc
index 67c90fd88e54..6da201f407b7 100644
--- a/etc/rc
+++ b/etc/rc
@@ -200,10 +200,12 @@ case ${ipv6_enable} in
;;
esac
-# Mount NFS filesystems.
-echo -n "Mounting NFS file systems"
-mount -a -t nfs
-echo .
+# Mount NFS filesystems if present in /etc/fstab
+if mount -d -a -t nfs | grep nfs >/dev/null 2>&1; then
+ echo -n "Mounting NFS file systems"
+ mount -a -t nfs
+ echo .
+fi
# Whack the pty perms back into shape.
#