summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorgordon <gordon@FreeBSD.org>2002-08-14 05:37:15 +0000
committergordon <gordon@FreeBSD.org>2002-08-14 05:37:15 +0000
commit2f904c0a96257516a43311cdac6551876ee3c559 (patch)
tree8892ec9e4042894543584055c41ed7cef48664f9 /etc/rc
parentf183894893c95323406ff434337f2d2ca502be5b (diff)
downloadFreeBSD-src-2f904c0a96257516a43311cdac6551876ee3c559.zip
FreeBSD-src-2f904c0a96257516a43311cdac6551876ee3c559.tar.gz
Clean up some variables that should have been done before:
xntpd_* -> ntpd_* portmap_* -> rpcbind_* Also change single_mountd_enable to mountd_enable. We also include shims for all the old variable names. Submitted by: Mike Makonnen <makonnen@pacbell.net>
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc20
1 files changed, 16 insertions, 4 deletions
diff --git a/etc/rc b/etc/rc
index 25f07a1..e31392a 100644
--- a/etc/rc
+++ b/etc/rc
@@ -122,6 +122,17 @@ elif [ -r /etc/rc.conf ]; then
. /etc/rc.conf
fi
+# XXX - Deprecated variable name support
+# for rpcbind and ntpd
+#
+[ -n "$portmap_enable" ] && rpcbind_enable="$portmap_enable"
+[ -n "$portmap_program" ] && rpcbind_program="$portmap_program"
+[ -n "$portmap_flags" ] && rpcbind_flags="$portmap_flags"
+[ -n "$single_mountd_enable" ] && mountd_enable="$single_mountd_enable"
+[ -n "$xntpd_enable" ] && ntpd_enable="$xntpd_enable"
+[ -n "$xntpd_program" ] && ntpd_program="$xntpd_program"
+[ -n "$xntpd_flags" ] && ntpd_flags="$xntpd_flags"
+
feed_dev_random() {
if [ -f "${1}" -a -r "${1}" -a -s "${1}" ]; then
# echo "Using ${1} as an entropy file"
@@ -153,11 +164,12 @@ chkdepend() {
esac
}
-chkdepend amd amd_enable portmap portmap_enable
+chkdepend amd amd_enable rpcbind rpcbind_enable
chkdepend amd amd_enable NFS nfs_client_enable
-chkdepend NFS nfs_server_enable portmap portmap_enable
-chkdepend NIS nis_server_enable portmap portmap_enable
-chkdepend NIS nis_client_enable portmap portmap_enable
+chkdepend NFS nfs_server_enable rpcbind rpcbind_enable
+chkdepend NFS nfs_server_enable rpcbind rpcbind_enable
+chkdepend NIS nis_server_enable rpcbind rpcbind_enable
+chkdepend NIS nis_client_enable rpcbind rpcbind_enable
# Enable dumpdev early so that a crash during the boot process can be caught.
#
OpenPOWER on IntegriCloud