Introduce bootparamd into the boot scripts. Add a bootparamd_enable and

_flags to rc.conf

Submitted by:	John Hay <jhay@zibbi.icomtek.csir.co.za>
This commit is contained in:
Gordon Tetlow 2002-09-05 20:14:46 +00:00
parent 40545cf5fc
commit b0e6d55b9e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102982
2 changed files with 13 additions and 2 deletions

View File

@ -157,6 +157,8 @@ rwhod_enable="NO" # Run the rwho daemon (or NO).
rwhod_flags="" # Flags for rwhod
rarpd_enable="NO" # Run rarpd (or NO).
rarpd_flags="" # Flags to rarpd.
bootparamd_enable="NO" # Run bootparamd (or NO).
bootparamd_flags="" # Flags to bootparamd
xtend_enable="NO" # Run the X-10 power controller daemon.
xtend_flags="" # Flags to xtend (if enabled).
pppoed_enable="NO" # Run the PPP over Ethernet daemon.

View File

@ -7,13 +7,22 @@
# PROVIDE: bootparams
# REQUIRE: rpcbind DAEMON
# BEFORE: LOGIN
# KEYWORD: FreeBSD
. /etc/rc.subr
name="bootparamd"
rcvar=$name
command="/usr/sbin/rpc.${name}"
rcvar=`set_rcvar`
required_files="/etc/bootparams"
case `${CMD_OSTYPE}` in
FreeBSD)
command="/usr/sbin/${name}"
;;
NetBSD)
command="/usr/sbin/rpc.${name}"
;;
esac
load_rc_config $name
run_rc_command "$1"