Browse Source

Fix missing IP section to properly add static hosts (#2650)

SVN-Revision: 9502
Florian Fainelli 18 years ago
parent
commit
547984d91d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      package/dnsmasq/files/dnsmasq.init

+ 2 - 0
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"