lib/update.operations
changeset 98 a3734856e0fa
parent 96 bed4765fc56f
child 99 934aab83b769
equal deleted inserted replaced
97:bfdf1633b2a1 98:a3734856e0fa
    70     fi
    70     fi
    71 }
    71 }
    72 
    72 
    73 function update_hosts_dhcp {
    73 function update_hosts_dhcp {
    74     local out=$1; shift
    74     local out=$1; shift
    75     local src=$1; shift
    75     local domain="$1"; shift
    76 
    76 
    77     if check_update $out $src "$@"; then
    77     if check_update $out "$@"; then
    78         log_update "Generating DHCP hosts $out <- $src..."
    78         log_update "Generating DHCP hosts $out @ $domain <- $@..."
    79 
    79 
    80         do_update $out $OPT/bin/pvl.hosts-dhcp \
    80         do_update $out $OPT/bin/pvl.hosts-dhcp \
    81             --hosts-charset=$CHARSET \
    81             --hosts-charset=$CHARSET \
    82             $src "$@"
    82             --hosts-domain=$domain \
    83     else
    83             "$@"
    84         log_skip "Generating DHCP hosts $out <- $src: not changed"
    84     else
       
    85         log_skip "Generating DHCP hosts $out <- $@: not changed"
    85     fi
    86     fi
    86 }
    87 }
    87 
    88 
    88 ## Generate reverse zone from hosts hosts using pvl.hosts-dns:
    89 ## Generate reverse zone from hosts hosts using pvl.hosts-dns:
    89 #
    90 #