Fix missing IP section to properly add static hosts (#2650)
authorFlorian Fainelli <florian@openwrt.org>
Mon, 5 Nov 2007 14:14:06 +0000 (14:14 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 5 Nov 2007 14:14:06 +0000 (14:14 +0000)
SVN-Revision: 9502

package/dnsmasq/files/dnsmasq.init

index 9797490c4719d405621be03e567c3a13947b4e77..75b20df0ebab90c3d73f732cd582300610191fdb 100644 (file)
@@ -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"