diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-11-22 11:52:08 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-11-22 11:52:08 +0000 |
commit | 5a485c411217b7bff06ed4282b6a95c6cfd8c4a6 (patch) | |
tree | 0f194f46616e4a777fd097bfa024e9f8aff36c05 /package/dnsmasq/files | |
parent | e4489675b560ba14e74ed760f0ee9b96923ecad8 (diff) | |
download | mtk-20170518-5a485c411217b7bff06ed4282b6a95c6cfd8c4a6.zip mtk-20170518-5a485c411217b7bff06ed4282b6a95c6cfd8c4a6.tar.gz mtk-20170518-5a485c411217b7bff06ed4282b6a95c6cfd8c4a6.tar.bz2 |
dnsmasq: Set a list of addnhosts files. e.g. list 'addnhosts' '/var/etc/hosts.olsr' list 'addnhosts' '/var/etc/hosts.olsrv6' hosts.olsr for ipv4 and hosts.olsrv6 for ipv6 addresses. Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
SVN-Revision: 18470
Diffstat (limited to 'package/dnsmasq/files')
-rw-r--r-- | package/dnsmasq/files/dnsmasq.init | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index ba1bf72..bc14aa6 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/package/dnsmasq/files/dnsmasq.init @@ -49,6 +49,10 @@ append_notinterface() { append args "-I $1" } +append_addnhosts() { + append args "-H $1" +} + dnsmasq() { local cfg="$1" append_bool "$cfg" authoritative "-K" @@ -72,13 +76,13 @@ dnsmasq() { append_parm "$cfg" port "-p" append_parm "$cfg" ednspacket_max "-P" append_parm "$cfg" dhcpleasemax "-X" - append_parm "$cfg" "addnhosts" "-H" append_parm "$cfg" "queryport" "-Q" append_parm "$cfg" "domain" "-s" append_parm "$cfg" "local" "-S" config_list_foreach "$cfg" "server" append_server config_list_foreach "$cfg" "interface" append_interface config_list_foreach "$cfg" "notinterface" append_notinterface + config_list_foreach "$cfg" "addnhosts" append_addnhosts append_parm "$cfg" "leasefile" "-l" append_parm "$cfg" "resolvfile" "-r" append_parm "$cfg" "tftp_root" "--tftp-root" |