summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-05-09 22:34:04 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-05-09 22:34:04 +0000
commitff3c63fb6122baba6ee48c6591cfc103e945ceff (patch)
tree1b8963b8268ca47793dab0f4921cee64f064a2c5 /package
parent8df0db79a684c7c07b8379ef91e01b477041a46f (diff)
downloadmaster-31e0f0ae-ff3c63fb6122baba6ee48c6591cfc103e945ceff.tar.gz
master-31e0f0ae-ff3c63fb6122baba6ee48c6591cfc103e945ceff.tar.bz2
master-31e0f0ae-ff3c63fb6122baba6ee48c6591cfc103e945ceff.zip
dnsmasq: add option to specify dhcp-hostsfile (#5079)
SVN-Revision: 15747
Diffstat (limited to 'package')
-rw-r--r--package/dnsmasq/files/dnsmasq.init3
1 files changed, 3 insertions, 0 deletions
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() {