summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2000-05-29 12:31:26 +0000
committerasmodai <asmodai@FreeBSD.org>2000-05-29 12:31:26 +0000
commit9998c137973dea1fa9b7bfd2b915515ad59ba753 (patch)
tree4e2a6bef3449cf218c749cfc6eb7c7cc3c273533
parent892ccf7da3f304f85b21198f5ccc53c3afab1bfe (diff)
downloadFreeBSD-src-9998c137973dea1fa9b7bfd2b915515ad59ba753.zip
FreeBSD-src-9998c137973dea1fa9b7bfd2b915515ad59ba753.tar.gz
Sanitise NFS fs mounting for /usr NFS mounts.
Submitted by: Doug Barton <DougB@gorean.org> Reviewed by: bde
-rw-r--r--etc/rc6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index f9b9a8f..c97dd02 100644
--- a/etc/rc
+++ b/etc/rc
@@ -202,11 +202,13 @@ case ${ipv6_enable} in
esac
# Mount NFS filesystems if present in /etc/fstab
-if mount -d -a -t nfs | grep -q nfs >/dev/null 2>&1; then
+case "`mount -d -a -t nfs`" in
+*mount_nfs*)
echo -n "Mounting NFS file systems"
mount -a -t nfs
echo .
-fi
+ ;;
+esac
# Whack the pty perms back into shape.
#
OpenPOWER on IntegriCloud