From: Jo-Philipp Wich Date: Mon, 8 Mar 2010 03:52:04 +0000 (+0000) Subject: dnsmasq: prevent bad command line error when a dhcp pool has ignore set and the corre... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4bbb272f489913810f809b175c09d22460edff15;p=openwrt%2Fstaging%2Flinusw.git dnsmasq: prevent bad command line error when a dhcp pool has ignore set and the corresponding iface has only whitespace as value SVN-Revision: 20048 --- diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 7955fdb0ec..0c038b7d31 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/package/dnsmasq/files/dnsmasq.init @@ -235,7 +235,7 @@ dhcp_add() { DNS_SERVERS="$DNS_SERVERS $dnsserver" } - append_bool "$cfg" ignore "-2 $ifname" && return 0 + append_bool "$cfg" ignore "-2 '$ifname'" && return 0 config_get proto "$net" proto [ static = "$proto" ] || return 0