Skip to content

Commit

Permalink
Add files/dhcpd.in
Browse files Browse the repository at this point in the history
  • Loading branch information
koue committed Sep 16, 2022
1 parent 2b86d4c commit ee324e3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions files/dhcpd.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh

# 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"

0 comments on commit ee324e3

Please sign in to comment.