Ticket #11227: dhcp_static_leasetime.patch

File dhcp_static_leasetime.patch, 579 bytes (added by OXINARF, 5 years ago)

Patch from hnyman

  • package/dnsmasq/files/dnsmasq.init

     
    231231        for m in $mac; do append macs "$m" ","; done 
    232232        [ -n "$macs" ] || return 0 
    233233 
    234         xappend "--dhcp-host=$macs${networkid:+,net:$networkid}${ip:+,$ip}${name:+,$name}" 
     234        config_get leasetime "$cfg" leasetime 
     235         
     236        xappend "--dhcp-host=$macs${networkid:+,net:$networkid}${ip:+,$ip}${name:+,$name}${leasetime:+,$leasetime}" 
    235237} 
    236238 
    237239dhcp_mac_add() {