summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authorgordon <gordon@FreeBSD.org>2003-06-01 01:43:37 +0000
committergordon <gordon@FreeBSD.org>2003-06-01 01:43:37 +0000
commit9e4887bad8511156504cb280a4cdf4549c7a8487 (patch)
treef2d37f3ad614a0490abb449ed36301b26842395e /etc/rc.d
parentfb023b686e685647dd3c62116d5e17c90c9f6f88 (diff)
downloadFreeBSD-src-9e4887bad8511156504cb280a4cdf4549c7a8487.zip
FreeBSD-src-9e4887bad8511156504cb280a4cdf4549c7a8487.tar.gz
Move networkfs_types from mountcritlocal into defaults/rc.conf as netfs_types.
Also add logic into mountcritremote to add extra_netfs_types to the list. This unbreaks putting smbfs, portalfs and now nwfs in fstab.
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/mountcritlocal5
-rwxr-xr-xetc/rc.d/mountcritremote10
2 files changed, 11 insertions, 4 deletions
diff --git a/etc/rc.d/mountcritlocal b/etc/rc.d/mountcritlocal
index 7f35666..2afddd7 100755
--- a/etc/rc.d/mountcritlocal
+++ b/etc/rc.d/mountcritlocal
@@ -20,18 +20,17 @@ mountcritlocal_start()
FreeBSD)
# Set up the list of network filesystem types for which mounting
# should be delayed until after network initialization.
- networkfs_types='nfs:NFS smbfs:SMB portalfs:PORTAL nwfs:NWFS'
case ${extra_netfs_types} in
[Nn][Oo])
;;
*)
- networkfs_types="${networkfs_types} ${extra_netfs_types}"
+ netfs_types="${netfs_types} ${extra_netfs_types}"
;;
esac
# Mount everything except nfs filesystems.
mount_excludes='no'
- for i in ${networkfs_types}; do
+ for i in ${netfs_types}; do
fstype=${i%:*}
mount_excludes="${mount_excludes}${fstype},"
done
diff --git a/etc/rc.d/mountcritremote b/etc/rc.d/mountcritremote
index 0561317..d64337f 100755
--- a/etc/rc.d/mountcritremote
+++ b/etc/rc.d/mountcritremote
@@ -56,7 +56,15 @@ mountcritremote_start()
echo '.'
# Mount other network filesystems if present in /etc/fstab.
- for i in ${networkfs_types}; do
+ case ${extra_netfs_types} in
+ [Nn][Oo])
+ ;;
+ *)
+ netfs_types="${netfs_types} ${extra_netfs_types}"
+ ;;
+ esac
+
+ for i in ${netfs_types}; do
fstype=${i%:*}
fsdecr=${i#*:}
OpenPOWER on IntegriCloud