diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-11-05 14:14:06 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-11-05 14:14:06 +0000 |
commit | 547984d91dfc1eb2e13ea941d67e4f181604702d (patch) | |
tree | 05bbc6ad7065071afdde1f30ff0b1985da138a57 /package/dnsmasq | |
parent | 558d0a48586769f0bdaa1706ba71903f2f1c6245 (diff) | |
download | mtk-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.init | 2 |
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" |