blob: 4dd6458bc89af49ea0df0f24328af7bb15a2c138 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: dhcpd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable dhcpd:
# dhcpd_enable="YES"
# dhcpd_flags="<set as needed>"
. /etc/rc.subr
name=dhcpd
rcvar=dhcpd_enable
load_rc_config $name
command="%%PREFIX%%/sbin/dhcpd"
dhcpd_enable=${dhcpd_enable:-"NO"}
dhcpd_flags=${dhcpd_flags:-""}
run_rc_command "$1"
|