2001-06-16 07:16:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2002-06-13 22:14:37 +00:00
|
|
|
# $NetBSD: bootparams,v 1.6 2002/03/22 04:33:58 thorpej Exp $
|
|
|
|
# $FreeBSD$
|
2001-06-16 07:16:14 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: bootparams
|
|
|
|
# REQUIRE: rpcbind DAEMON
|
2002-06-13 22:14:37 +00:00
|
|
|
# BEFORE: LOGIN
|
2002-09-05 20:14:46 +00:00
|
|
|
# KEYWORD: FreeBSD
|
2001-06-16 07:16:14 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="bootparamd"
|
2002-09-05 20:14:46 +00:00
|
|
|
rcvar=`set_rcvar`
|
2001-06-16 07:16:14 +00:00
|
|
|
required_files="/etc/bootparams"
|
|
|
|
|
2002-09-06 16:18:05 +00:00
|
|
|
case ${OSTYPE} in
|
2002-09-05 20:14:46 +00:00
|
|
|
FreeBSD)
|
|
|
|
command="/usr/sbin/${name}"
|
|
|
|
;;
|
|
|
|
NetBSD)
|
|
|
|
command="/usr/sbin/rpc.${name}"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2001-06-16 07:16:14 +00:00
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|