summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordan <dan@FreeBSD.org>2000-03-25 16:17:53 +0000
committerdan <dan@FreeBSD.org>2000-03-25 16:17:53 +0000
commitb1392da76bf94a3a8d2a0c2e08231fa7803f9673 (patch)
tree0c059fe1f6e39ca567354ac359039c3f705efa40 /etc
parentcfc69d4ffab7e035d5cd669692de7e3328753967 (diff)
downloadFreeBSD-src-b1392da76bf94a3a8d2a0c2e08231fa7803f9673.zip
FreeBSD-src-b1392da76bf94a3a8d2a0c2e08231fa7803f9673.tar.gz
Only tell the user that we're Mounting NFS file systems when we have NFS
file systems to mount. PR: 17594 Submitted by: Doug Barton <Doug@gorean.org>
Diffstat (limited to 'etc')
-rw-r--r--etc/rc10
1 files changed, 6 insertions, 4 deletions
diff --git a/etc/rc b/etc/rc
index 67c90fd..6da201f 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.
#
OpenPOWER on IntegriCloud