blob: 4878e329df1f5dbbc08971d30fa5e7c2769bc73e (
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
27
28
29
30
31
32
33
|
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: isc_dhclient.sh,v 1.2 2007/12/30 12:30:52 adrianp Exp $
#
# PROVIDE: dhclient
# REQUIRE: network mountcritlocal
# BEFORE: NETWORKING
#
# Note that there no syslog logging of dhclient messages at boot because
# dhclient needs to start before services that syslog depends upon do.
#
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="dhclient"
rcvar="isc_${name}"
command="@PREFIX@/sbin/${name}"
pidfile="@VARBASE@/run/isc-dhcp/dhclient.pid"
start_precmd="isc_dhclient_precmd"
isc_dhclient_precmd()
{
if [ ! -d @VARBASE@/run/isc-dhcp ]; then
@MKDIR@ @VARBASE@/run/isc-dhcp
@CHMOD@ 0770 @VARBASE@/run/isc-dhcp
fi
}
load_rc_config $rcvar
run_rc_command "$1"
|