View | Details | Raw Unified | Return to bug 69590
Collapse All | Expand All

(-)isc-dhcpd.sh.sample (-15 / +15 lines)
Lines 17-40 Link Here
17
paranoia=%%PARANOIA%%				# compiled in paranoia?
17
paranoia=%%PARANOIA%%				# compiled in paranoia?
18
jail=%%JAIL%%				# compiled in jail?
18
jail=%%JAIL%%				# compiled in jail?
19
19
20
# override these variables in /etc/rc.conf
20
# set these variables if they are not defined in /etc/rc.conf
21
dhcpd_enable=NO
21
[ -z "$dhcpd_enable" ] && dhcpd_enable="NO"
22
dhcpd_flags= # -q -early_chroot		# command option(s)
22
[ -z "$dhcpd_flags" ] && dhcpd_flags= # -q -early_chroot	# command option(s)
23
dhcpd_conf=%%PREFIX%%/etc/${name}.conf	# configuration file
23
[ -z "$dhcpd_conf" ] && dhcpd_conf=%%PREFIX%%/etc/${name}.conf	# configuration file
24
dhcpd_ifaces=				# ethernet interface(s)
24
[ -z "$dhcpd_ifaces" ] && dhcpd_ifaces=		# ethernet interface(s)
25
dhcpd_withumask=022			# file creation mask
25
[ -z "$dhcpd_withumask" ] && dhcpd_withumask=022	# file creation mask
26
26
27
dhcpd_chuser_enable=YES			# runs w/o privileges?
27
[ -z "$dhcpd_chuser_enable" ] && dhcpd_chuser_enable=YES			# runs w/o privileges?
28
dhcpd_withuser=${name}			# user name to run as
28
[ -z "$dhcpd_withuser" ] && dhcpd_withuser=${name}	# user name to run as
29
dhcpd_withgroup=${name}			# group name to run as
29
[ -z "$dhcpd_withgroup" ] && dhcpd_withgroup=${name}	# group name to run as
30
30
31
dhcpd_chroot_enable=NO			# runs chrooted?
31
[ -z "$dhcpd_chroot_enable" ] && dhcpd_chroot_enable=NO	# runs chrooted?
32
dhcpd_rootdir=/var/db/${name}		# directory to run in
32
[ -z "$dhcpd_rootdir" ] && dhcpd_rootdir=/var/db/${name}	# directory to run in
33
33
34
# untested
34
# untested
35
dhcpd_jail_enable=NO			# runs imprisoned?
35
[ -z "$dhcpd_jail_enable" ] && dhcpd_jail_enable=NO	# runs imprisoned?
36
dhcpd_hostname=				# jail hostname
36
[ -z "$dhcpd_hostname" ] && dhcpd_hostname=		# jail hostname
37
dhcpd_ipaddress=			# jail ip address
37
[ -z "$dhcpd_ipaddress" ] && dhcpd_ipaddress=		# jail ip address
38
38
39
safe_run ()	# rc command [args...]
39
safe_run ()	# rc command [args...]
40
{
40
{
(-)isc-dhcrelay.sh.sample (-5 / +5 lines)
Lines 11-21 Link Here
11
# dhcrelay_enable="YES"
11
# dhcrelay_enable="YES"
12
#
12
#
13
13
14
# override these variables in /etc/rc.conf
14
# set these variables if they have not been defined in /etc/rc.conf
15
dhcrelay_enable=NO
15
[ -z "$dhcrelay_enable" ] && dhcrelay_enable="NO"
16
dhcrelay_flags=				# command option(s)
16
[ -z "$dhcrelay_flags" ] && dhcrelay_flags=		# command option(s)
17
dhcrelay_servers=			# dhcrelay server(s)
17
[ -z "$dhcrelay_servers" ] && dhcrelay_servers=	# dhcrelay server(s)
18
dhcrelay_ifaces=			# ethernet interface(s)
18
[ -z "$dhcrelay_ifaces" ] && dhcrelay_ifaces=		# ethernet interface(s)
19
19
20
dhcrelay_precmd ()
20
dhcrelay_precmd ()
21
{
21
{

Return to bug 69590