Changeset 18470


Ignore:
Timestamp:
2009-11-22T12:52:08+01:00 (7 years ago)
Author:
jow
Message:

[package] 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@…>

Location:
trunk/package/dnsmasq
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/dnsmasq/Makefile

    r17897 r18470  
    1010PKG_NAME:=dnsmasq 
    1111PKG_VERSION:=2.50 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • trunk/package/dnsmasq/files/dnsmasq.init

    r17897 r18470  
    4848append_notinterface() { 
    4949        append args "-I $1" 
     50} 
     51 
     52append_addnhosts() { 
     53        append args "-H $1" 
    5054} 
    5155 
     
    7377        append_parm "$cfg" ednspacket_max "-P" 
    7478        append_parm "$cfg" dhcpleasemax "-X" 
    75         append_parm "$cfg" "addnhosts" "-H" 
    7679        append_parm "$cfg" "queryport" "-Q" 
    7780        append_parm "$cfg" "domain" "-s" 
     
    8083        config_list_foreach "$cfg" "interface" append_interface 
    8184        config_list_foreach "$cfg" "notinterface" append_notinterface 
     85        config_list_foreach "$cfg" "addnhosts" append_addnhosts 
    8286        append_parm "$cfg" "leasefile" "-l" 
    8387        append_parm "$cfg" "resolvfile" "-r" 
Note: See TracChangeset for help on using the changeset viewer.