summaryrefslogtreecommitdiff
path: root/package/dnsmasq
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
parent558d0a48586769f0bdaa1706ba71903f2f1c6245 (diff)
downloadmtk-20170518-547984d91dfc1eb2e13ea941d67e4f181604702d.zip
mtk-20170518-547984d91dfc1eb2e13ea941d67e4f181604702d.tar.gz
mtk-20170518-547984d91dfc1eb2e13ea941d67e4f181604702d.tar.bz2
Fix missing IP section to properly add static hosts (#2650)
SVN-Revision: 9502
Diffstat (limited to 'package/dnsmasq')
-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 9797490..75b20df 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"