|
|
DHCPD_CONF="${DHCPD_CONF%% *}" | DHCPD_CONF="${DHCPD_CONF%% *}" |
| |
# Now we have the cffile, we can remove it from our options | # Now we have the cffile, we can remove it from our options |
DHCPD_OPTS="${DHCPD_OPTS//-cf/}" |
DHCPD_OPTS="`echo ${DHCPD_OPTS} | sed 's/-cf//; s/""${DHCPD_CONF}""//'`" |
DHCPD_OPTS="${DHCPD_OPTS//${DHCPD_CONF}/}" |
|
fi | fi |
| |
depend() { | depend() { |
|
|
fi | fi |
| |
# Setup LD_PRELOAD so name resolution works in our chroot. | # Setup LD_PRELOAD so name resolution works in our chroot. |
if [[ -n ${DHCPD_CHROOT} ]] ; then |
if [[ -n "${DHCPD_CHROOT}" ]] ; then |
LD_PRELOAD="${LD_PRELOAD} /usr/lib/libresolv.so" | LD_PRELOAD="${LD_PRELOAD} /usr/lib/libresolv.so" |
export LD_PRELOAD="${LD_PRELOAD} /usr/lib/libnss_dns.so" | export LD_PRELOAD="${LD_PRELOAD} /usr/lib/libnss_dns.so" |
fi | fi |