freebsd-nq/etc/rc.d/bootparams
Gordon Tetlow b0e6d55b9e 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>
2002-09-05 20:14:46 +00:00

29 lines
418 B
Bash
Executable File

#!/bin/sh
#
# $NetBSD: bootparams,v 1.6 2002/03/22 04:33:58 thorpej Exp $
# $FreeBSD$
#
# PROVIDE: bootparams
# REQUIRE: rpcbind DAEMON
# BEFORE: LOGIN
# KEYWORD: FreeBSD
. /etc/rc.subr
name="bootparamd"
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"