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-Url: http://git.lede-project.org./?a=commitdiff_plain;h=547984d91dfc1eb2e13ea941d67e4f181604702d;p=openwrt%2Fstaging%2Frmilecki.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 9797490c471..75b20df0eba 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"