From: Jo-Philipp Wich Date: Mon, 8 Mar 2010 03:52:04 +0000 (+0000) Subject: [package] dnsmasq: prevent bad command line error when a dhcp pool has ignore set... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=58cb9df2c38d289dba4857a640c24929df7720f2;p=openwrt%2Fsvn-archive%2Farchive.git [package] 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