diff options
Diffstat (limited to 'etc/rc.d/bootparams')
-rwxr-xr-x | etc/rc.d/bootparams | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/etc/rc.d/bootparams b/etc/rc.d/bootparams index 3afbd76..5db3b46 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" |