summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/mountcritremote
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2008-06-22 15:40:19 +0000
committermtm <mtm@FreeBSD.org>2008-06-22 15:40:19 +0000
commitee7a7b62e7acd77e4310b2eb40b8b8d1f64dd8ed (patch)
tree68f133ce216efc5a80eb4f231dd15a187aedd74d /etc/rc.d/mountcritremote
parent0cb079251abec91939985b82a7857384c40d85af (diff)
downloadFreeBSD-src-ee7a7b62e7acd77e4310b2eb40b8b8d1f64dd8ed.zip
FreeBSD-src-ee7a7b62e7acd77e4310b2eb40b8b8d1f64dd8ed.tar.gz
Don't say we're going to mount filesystems of a certain type unless
there actually are filesystems of that type to mount.
Diffstat (limited to 'etc/rc.d/mountcritremote')
-rwxr-xr-xetc/rc.d/mountcritremote12
1 files changed, 9 insertions, 3 deletions
diff --git a/etc/rc.d/mountcritremote b/etc/rc.d/mountcritremote
index 94a37dc..ff965da 100755
--- a/etc/rc.d/mountcritremote
+++ b/etc/rc.d/mountcritremote
@@ -36,9 +36,15 @@ mountcritremote_start()
{
# Mount nfs filesystems.
#
- echo -n 'Mounting NFS file systems:'
- mount -a -t nfs
- echo '.'
+ case "`/sbin/mount -d -a -t nfs`" in
+ '')
+ ;;
+ *)
+ echo -n 'Mounting NFS file systems:'
+ mount -a -t nfs
+ echo '.'
+ ;;
+ esac
# Mount other network filesystems if present in /etc/fstab.
case ${extra_netfs_types} in
OpenPOWER on IntegriCloud