From: Jo-Philipp Wich Date: Sat, 9 May 2009 22:34:04 +0000 (+0000) Subject: [package] dnsmasq: add option to specify dhcp-hostsfile (#5079) X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=2ae9b7d0d5b72cbbc651f025c0f78f2c921621af [package] dnsmasq: add option to specify dhcp-hostsfile (#5079) SVN-Revision: 15747 --- diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 3f8dca959c..b5ecf1de27 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/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() {