Ignore:
Timestamp:
2011-10-20T14:12:26+02:00 (5 years ago)
Author:
thepeople
Message:

add cname section

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/dnsmasq/files/dnsmasq.init

    r26983 r28493  
    365365} 
    366366 
     367dhcp_cname_add() { 
     368        local cfg="$1" 
     369        local cname target 
     370 
     371        config_get cname "$cfg" cname 
     372        [ -n "$cname" ] || return 0 
     373 
     374        config_get target "$cfg" target 
     375        [ -n "$target" ] || return 0 
     376 
     377        append args "--cname=${cname},${target}" 
     378} 
     379 
    367380start() { 
    368381        include /lib/network 
     
    383396        config_foreach dhcp_srv_add srvhost 
    384397        config_foreach dhcp_add dhcp 
     398        config_foreach dhcp_cname_add cname 
    385399 
    386400        /usr/sbin/dnsmasq $args && { 
Note: See TracChangeset for help on using the changeset viewer.