diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-09 22:34:04 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-09 22:34:04 +0000 |
commit | fed636e22366b122eb948a76004b2ba767264d28 (patch) | |
tree | 4dc29936c1d14648b619c08934c2e02197bd1120 /package/dnsmasq/files | |
parent | 10ea8c0638eeb4d8382e2ac2fad5f432851a8742 (diff) | |
download | master-187ad058-fed636e22366b122eb948a76004b2ba767264d28.tar.gz master-187ad058-fed636e22366b122eb948a76004b2ba767264d28.tar.bz2 master-187ad058-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/files')
-rw-r--r-- | package/dnsmasq/files/dnsmasq.init | 3 |
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() { |