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 | ff3c63fb6122baba6ee48c6591cfc103e945ceff (patch) | |
tree | 1b8963b8268ca47793dab0f4921cee64f064a2c5 /package | |
parent | 8df0db79a684c7c07b8379ef91e01b477041a46f (diff) | |
download | mtk-20170518-ff3c63fb6122baba6ee48c6591cfc103e945ceff.zip mtk-20170518-ff3c63fb6122baba6ee48c6591cfc103e945ceff.tar.gz mtk-20170518-ff3c63fb6122baba6ee48c6591cfc103e945ceff.tar.bz2 |
dnsmasq: add option to specify dhcp-hostsfile (#5079)
SVN-Revision: 15747
Diffstat (limited to 'package')
-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 3f8dca9..b5ecf1d 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() { |