aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>2001-06-10 12:09:11 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>2001-06-10 12:09:11 +0000
commit2684d2270dba41941ef8bb08dfaadf8ba1c35ad6 (patch)
treebfc144ac2dd6b91bd83164c1d3751a869ef9a981
parent000d56193c05f97e88fa54b5b8482ff18bebf42a (diff)
downloadsrc-2684d2270dba41941ef8bb08dfaadf8ba1c35ad6.tar.gz
src-2684d2270dba41941ef8bb08dfaadf8ba1c35ad6.zip
Back out rev 1.268.
Requested by: wollman, rwatson
Notes
Notes: svn path=/head/; revision=77974
-rw-r--r--etc/rc31
1 files changed, 10 insertions, 21 deletions
diff --git a/etc/rc b/etc/rc
index 413f50dc4592..717a3395409d 100644
--- a/etc/rc
+++ b/etc/rc
@@ -261,15 +261,8 @@ esac
umount -a >/dev/null 2>&1
-# Mount everything except remote filesystems.
-remotefs_types='nfs:NFS smbfs:SMB'
-mount_excludes='no'
-for i in ${remotefs_types}; do
- fstype=${i%:*}
- mount_excludes="${mount_excludes}${fstype},"
-done
-mount_excludes=${mount_excludes%,}
-mount -a -t ${mount_excludes}
+# Mount everything except nfs filesystems.
+mount -a -t nonfs
case $? in
0)
@@ -404,18 +397,14 @@ case ${ipv6_enable} in
;;
esac
-# Mount remote filesystems if present in /etc/fstab
-for i in ${remotefs_types}; do
- fstype=${i%:*}
- fsdecr=${i#*:}
- case "`mount -d -a -t ${fstype}`" in
- *mount_${fstype}*)
- echo -n "Mounting ${fsdecr} file systems:"
- mount -a -t ${fstype}
- echo '.'
- ;;
- esac
-done
+# Mount NFS filesystems if present in /etc/fstab
+case "`mount -d -a -t nfs 2> /dev/null`" in
+*mount_nfs*)
+ echo -n 'Mounting NFS file systems:'
+ mount -a -t nfs
+ echo '.'
+ ;;
+esac
# Whack the pty perms back into shape.
#