aboutsummaryrefslogtreecommitdiffstats
path: root/package/dnsmasq/files/dnsmasq.init
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
commit547984d91dfc1eb2e13ea941d67e4f181604702d (patch)
tree05bbc6ad7065071afdde1f30ff0b1985da138a57 /package/dnsmasq/files/dnsmasq.init
parent558d0a48586769f0bdaa1706ba71903f2f1c6245 (diff)
downloadupstream-547984d91dfc1eb2e13ea941d67e4f181604702d.tar.gz
upstream-547984d91dfc1eb2e13ea941d67e4f181604702d.tar.bz2
upstream-547984d91dfc1eb2e13ea941d67e4f181604702d.zip
Fix missing IP section to properly add static hosts (#2650)
SVN-Revision: 9502
Diffstat (limited to 'package/dnsmasq/files/dnsmasq.init')
-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"