From: Florian Fainelli Date: Mon, 5 Nov 2007 14:14:06 +0000 (+0000) Subject: Fix missing IP section to properly add static hosts (#2650) X-Git-Tag: v19.07.0-rc1~38332 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=547984d91dfc1eb2e13ea941d67e4f181604702d;p=openwrt%2Fstaging%2Fhauke.git Fix missing IP section to properly add static hosts (#2650) SVN-Revision: 9502 --- diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 9797490c47..75b20df0eb 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/package/dnsmasq/files/dnsmasq.init @@ -144,6 +144,8 @@ dhcp_host_add() { config_get mac "$cfg" mac [ -n "$mac" ] || return 0 + config_get ip "$cfg" ip + [ -n "$ip" ] || return 0 append args "--dhcp-host=$mac,$ip"