diff options
author | mtm <mtm@FreeBSD.org> | 2008-06-22 15:40:19 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2008-06-22 15:40:19 +0000 |
commit | ee7a7b62e7acd77e4310b2eb40b8b8d1f64dd8ed (patch) | |
tree | 68f133ce216efc5a80eb4f231dd15a187aedd74d /etc/rc.d/mountcritremote | |
parent | 0cb079251abec91939985b82a7857384c40d85af (diff) | |
download | FreeBSD-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-x | etc/rc.d/mountcritremote | 12 |
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 |