summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-12-11 22:47:50 +0000
committerobrien <obrien@FreeBSD.org>2000-12-11 22:47:50 +0000
commit634a4b8080cc65186c3c5ad0720964ac4544f83c (patch)
treeb17febc9a923d6f63769ba9204289ebc270bec66 /etc
parentbfe09706cdd42f9f0f606a08027a33d395e143ac (diff)
downloadFreeBSD-src-634a4b8080cc65186c3c5ad0720964ac4544f83c.zip
FreeBSD-src-634a4b8080cc65186c3c5ad0720964ac4544f83c.tar.gz
Set portmap_enable if Amd or running as an NFS server is enabled.
This bites too many systems upgrading from our change in defaults.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc15
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 946f07f..e9c0e41 100644
--- a/etc/rc
+++ b/etc/rc
@@ -71,6 +71,21 @@ elif [ -r /etc/rc.conf ]; then
. /etc/rc.conf
fi
+# Deal with dependancies.
+ case ${amd_enable} in
+ [Yy][Ee][Ss])
+
+ portmap_enable="YES"
+ ;;
+ esac
+ case ${nfs_server_enable} in
+ [Yy][Ee][Ss])
+ if [ -r /etc/exports ]; then
+ portmap_enable="YES"
+ fi
+ ;;
+ esac
+
# First pass at entropy recovery so the rebooting /dev/random can reseed.
#
OpenPOWER on IntegriCloud