diff options
| author | Gordon Tetlow <gordon@FreeBSD.org> | 2002-09-05 20:14:46 +0000 |
|---|---|---|
| committer | Gordon Tetlow <gordon@FreeBSD.org> | 2002-09-05 20:14:46 +0000 |
| commit | b0e6d55b9e090c5497e2ea2b08cbdb4b5ff97ee4 (patch) | |
| tree | 2ecf7aa681f1a100b1ca4cb6efeed28add8770de /etc | |
| parent | 40545cf5fc2c16fde2a56555784937042b08f5f2 (diff) | |
Notes
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/defaults/rc.conf | 2 | ||||
| -rwxr-xr-x | etc/rc.d/bootparams | 13 |
2 files changed, 13 insertions, 2 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index aa8febc33be4..0bd12453e8a0 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -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. diff --git a/etc/rc.d/bootparams b/etc/rc.d/bootparams index 3afbd768a50c..5db3b461ed06 100755 --- a/etc/rc.d/bootparams +++ b/etc/rc.d/bootparams @@ -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" |
