Browse Source

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 <[email protected]>

SVN-Revision: 18934
Jo-Philipp Wich 16 years ago
parent
commit
2a83e90ceb
2 changed files with 2 additions and 2 deletions
  1. 1 1
      package/dnsmasq/Makefile
  2. 1 1
      package/dnsmasq/files/dnsmasq.init

+ 1 - 1
package/dnsmasq/Makefile

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dnsmasq
 PKG_VERSION:=2.51
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq

+ 1 - 1
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() {