From: Roy Marples Date: Wed, 13 Aug 2008 14:56:46 +0000 (+0000) Subject: Fix removing old stale entries. X-Git-Tag: v4.0.2~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58d770fc587edce63df57d0567b9677773096c8d;p=thirdparty%2Fdhcpcd.git Fix removing old stale entries. --- diff --git a/dhcpcd-run-hooks.in b/dhcpcd-run-hooks.in index cb1eeeb8..62b38e78 100644 --- a/dhcpcd-run-hooks.in +++ b/dhcpcd-run-hooks.in @@ -23,7 +23,7 @@ clean_conf() for x in $(sed -n "s/${m1}//p" "${cft}"); do if [ ! -s /var/run/dhcpcd-${x}.pid ]; then m1="^${signtaure_base}${x}$" - m2="^${signature_base_end} ${x}$" + m2="^${signature_base_end}${x}$" sed "/${m1}/,/${m2}/d" "${cft}" >"${cft}".tmp mv -f "${cft}".tmp "${cft}" fi