aboutsummaryrefslogtreecommitdiffstats
path: root/package/dnsmasq
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
commitfed636e22366b122eb948a76004b2ba767264d28 (patch)
tree4dc29936c1d14648b619c08934c2e02197bd1120 /package/dnsmasq
parent10ea8c0638eeb4d8382e2ac2fad5f432851a8742 (diff)
downloadupstream-fed636e22366b122eb948a76004b2ba767264d28.tar.gz
upstream-fed636e22366b122eb948a76004b2ba767264d28.tar.bz2
upstream-fed636e22366b122eb948a76004b2ba767264d28.zip
[package] dnsmasq: add option to specify dhcp-hostsfile (#5079)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15747 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/dnsmasq')
-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() {