summaryrefslogtreecommitdiffstats
path: root/package/dnsmasq/files
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-11-05 14:14:06 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-11-05 14:14:06 +0000
commit02ab35ee7f8f25ac56ac0e8ccbaa51926a0d92ea (patch)
treec195c519a047780b4e882d79b3c43f53dafb44c7 /package/dnsmasq/files
parenta3d3ab2610e8226156445c6e777852c97c2d9921 (diff)
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
Diffstat (limited to 'package/dnsmasq/files')
-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 9797490c4..75b20df0e 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"