summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2001-05-27 22:50:22 +0000
committeryar <yar@FreeBSD.org>2001-05-27 22:50:22 +0000
commit0727598a0e32df4c431ce3b099be9c4695eb6f16 (patch)
tree981d6edd889a176ca6783aef5dd4d891baa1f293 /etc/rc
parente575dde35923ef7c1d8d571509227ca93b77611c (diff)
downloadFreeBSD-src-0727598a0e32df4c431ce3b099be9c4695eb6f16.zip
FreeBSD-src-0727598a0e32df4c431ce3b099be9c4695eb6f16.tar.gz
Don't confuse the admin with spurious error messages
about non-existent mount directories (which would come into existence after the real mount has occured) when just testing for if there are any NFS filesystems in /etc/fstab. PR: bin/26597 Submitted by: Dmitry Morozovsky <marck@rinet.ru> MFC after: 3 days
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index b867d75..504890d 100644
--- a/etc/rc
+++ b/etc/rc
@@ -398,7 +398,7 @@ case ${ipv6_enable} in
esac
# Mount NFS filesystems if present in /etc/fstab
-case "`mount -d -a -t nfs`" in
+case "`mount -d -a -t nfs 2> /dev/null`" in
*mount_nfs*)
echo -n 'Mounting NFS file systems:'
mount -a -t nfs
OpenPOWER on IntegriCloud