blob: e8b0ee65658d8f49577e3860804faabe09823bfd (
plain) (
blame)
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
34
35
36
37
38
39
40
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: dtcpclient
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: FreeBSD shutdown
#
# NOTE for FreeBSD 5.0+:
# If you want this script to start with the base rc scripts
# move dtcpclient.sh to /etc/rc.d/dtcpclient
prefix=%%PREFIX%%
# Define these dtcpclient_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/dtcpclient
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
dtcpclient_enable=${dtcpclient_enable:-"NO"} # Enable dtcpclient
#dtcpclient_program="${prefix}/sbin/dtcpclient" # Location of dtcpclient
dtcpclient_server=${dtcpclient_server:-""} # DTCP server name
dtcpclient_username=${dtcpclient_username:-""} # DTCP user name
dtcpclient_flags=${dtcpclient_flags:-"-t network -Dl"} # Flags to dtcpclient program
. %%RC_SUBR%%
name="dtcpclient"
rcvar=`set_rcvar`
command="${prefix}/sbin/${name}"
pidfile="/var/run/${name}.pid"
extra_commands="reload"
load_rc_config $name
command_args="-u ${dtcpclient_username} ${dtcpclient_server}"
run_rc_command "$1"
|