Browse Source

dnsmasq: add option to specify dhcp-hostsfile (#5079)

SVN-Revision: 15747
Jo-Philipp Wich 16 years ago
parent
commit
ff3c63fb61
1 changed files with 3 additions and 0 deletions
  1. 3 0
      package/dnsmasq/files/dnsmasq.init

+ 3 - 0
package/dnsmasq/files/dnsmasq.init

@@ -81,6 +81,9 @@ dnsmasq() {
 	config_get leasefile $cfg leasefile
 	[ -e "$leasefile" ] || touch "$leasefile"
 	config_get_bool cachelocal "$cfg" cachelocal 1
+
+	config_get hostsfile "$cfg" dhcphostsfile
+	[ -e "$hostsfile" ] && append args "--dhcp-hostsfile=$hostsfile"
 }
 
 dhcp_subscrid_add() {