aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-11-05 14:14:06 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-11-05 14:14:06 +0000
commit47072a732bc1ed3fd41c85cc3716752cf43415c9 (patch)
treec195c519a047780b4e882d79b3c43f53dafb44c7
parent9bf479c8b18eeeff1c588c99672b86dfefa017ec (diff)
downloadmaster-187ad058-47072a732bc1ed3fd41c85cc3716752cf43415c9.tar.gz
master-187ad058-47072a732bc1ed3fd41c85cc3716752cf43415c9.tar.bz2
master-187ad058-47072a732bc1ed3fd41c85cc3716752cf43415c9.zip
Fix missing IP section to properly add static hosts (#2650)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9502 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/dnsmasq/files/dnsmasq.init2
1 files changed, 2 insertions, 0 deletions
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"