aboutsummaryrefslogtreecommitdiffstats
path: root/package/dnsmasq/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-12-26 00:23:35 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-12-26 00:23:35 +0000
commit2a83e90ceb3287a9481dbb39b3593049219317ef (patch)
tree2052485eff7c2fcc1c768ab3209d5281ccdd2f16 /package/dnsmasq/files
parent371e7aa5210d6b18e4eb9c7ebc5e2b63690db07a (diff)
downloadupstream-2a83e90ceb3287a9481dbb39b3593049219317ef.tar.gz
upstream-2a83e90ceb3287a9481dbb39b3593049219317ef.tar.bz2
upstream-2a83e90ceb3287a9481dbb39b3593049219317ef.zip
dnsmasq: While trying to document the dhcp UCI config, I noticed that the name config option is applied wrongly when adding static addresses. Cf. the dnsmasq man page. Signed-off-by: Stefan Bethke <stb@lassitu.de>
SVN-Revision: 18934
Diffstat (limited to 'package/dnsmasq/files')
-rw-r--r--package/dnsmasq/files/dnsmasq.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init
index bc14aa6c41..3532dbd652 100644
--- a/package/dnsmasq/files/dnsmasq.init
+++ b/package/dnsmasq/files/dnsmasq.init
@@ -180,7 +180,7 @@ dhcp_host_add() {
config_get ip "$cfg" ip
[ -n "$ip" ] || return 0
- append args "--dhcp-host=$mac,$ip${name:+,$name}"
+ append args "--dhcp-host=$mac,${name:+net:$name,}$ip"
}
dhcp_mac_add() {