diff options
Diffstat (limited to 'net/isc-dhcp/files/isc_dhcpd.sh')
-rwxr-xr-x | net/isc-dhcp/files/isc_dhcpd.sh | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/net/isc-dhcp/files/isc_dhcpd.sh b/net/isc-dhcp/files/isc_dhcpd.sh deleted file mode 100755 index 83eb33cdec3..00000000000 --- a/net/isc-dhcp/files/isc_dhcpd.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!@RCD_SCRIPTS_SHELL@ -# -# $NetBSD: isc_dhcpd.sh,v 1.2 2007/12/30 12:30:52 adrianp Exp $ -# - -# PROVIDE: dhcpd -# REQUIRE: DAEMON -# BEFORE: LOGIN - -if [ -f /etc/rc.subr ]; then - . /etc/rc.subr -fi - -name="dhcpd" -rcvar="isc_${name}" -command="@PREFIX@/sbin/${name}" -pidfile="@VARBASE@/run/isc-dhcp/isc-${name}.pid" -required_files="@PKG_SYSCONFDIR@/${name}.conf" -start_precmd="isc_dhcpd_precmd" - -isc_dhcpd_precmd() -{ - if [ ! -d @VARBASE@/run/isc-dhcp ]; then - @MKDIR@ @VARBASE@/run/isc-dhcp - @CHMOD@ 0770 @VARBASE@/run/isc-dhcp - fi - - if [ ! -f @DHCP_HOME@/dhcpd.leases ]; then - @MKDIR@ @DHCP_HOME@ - @TOUCH@ @DHCP_HOME@/dhcpd.leases - @CHMOD@ 0640 @DHCP_HOME@/dhcpd.leases - fi -} - -load_rc_config $rcvar -run_rc_command "$1" |