diff -ruN data.orig/etc/init.d/dhcpd data/etc/init.d/dhcpd --- data.orig/etc/init.d/dhcpd 2006-08-31 23:49:35 +0000 +++ data/etc/init.d/dhcpd 2007-03-09 10:41:38 +0000 @@ -12,8 +12,7 @@ DHCPD_CONF="${DHCPD_CONF%% *}" # Now we have the cffile, we can remove it from our options - DHCPD_OPTS="${DHCPD_OPTS//-cf/}" - DHCPD_OPTS="${DHCPD_OPTS//${DHCPD_CONF}/}" + DHCPD_OPTS="`echo ${DHCPD_OPTS} | sed 's/-cf//; s/""${DHCPD_CONF}""//'`" fi depend() { @@ -42,7 +41,7 @@ fi # 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" export LD_PRELOAD="${LD_PRELOAD} /usr/lib/libnss_dns.so" fi