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 |
{ |