Bring RCNG in from 5.x and adjust config files and scripts accordingly.
[dragonfly.git] / etc / rc.d / bootparams
1 #!/bin/sh
2 #
3 # $NetBSD: bootparams,v 1.6 2002/03/22 04:33:58 thorpej Exp $
4 # $FreeBSD: src/etc/rc.d/bootparams,v 1.4 2002/09/06 16:18:05 gordon Exp $
5 # $DragonFly: src/etc/rc.d/bootparams,v 1.1 2003/07/24 06:35:37 dillon Exp $
6 #
7
8 # PROVIDE: bootparams
9 # REQUIRE: rpcbind DAEMON
10 # BEFORE:  LOGIN
11 # KEYWORD: DragonFly FreeBSD
12
13 . /etc/rc.subr
14
15 name="bootparamd"
16 rcvar=`set_rcvar`
17 required_files="/etc/bootparams"
18
19 case ${OSTYPE} in
20 DragonFly)
21         command="/usr/sbin/${name}"
22         ;;
23 FreeBSD)
24         command="/usr/sbin/${name}"
25         ;;
26 NetBSD)
27         command="/usr/sbin/rpc.${name}"
28         ;;
29 esac
30
31 load_rc_config $name
32 run_rc_command "$1"