Changeset 3555


Ignore:
Timestamp:
2006-03-30T12:14:26+02:00 (12 years ago)
Author:
florian
Message:

Add support for default lease time in nvram

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/whiterussian/openwrt/package/dnsmasq/files/S50dnsmasq

    r3525 r3555  
    2020 
    2121  eval $(ipcalc $ipaddr $netmask ${start:-100} ${num:-150}) 
     22  lease=$(nvram get dhcp_lease) 
    2223   
    2324  # and pass the args via the commandline 
    2425  # (because trying to edit the config from here is crazy) 
    25   args="-K -F $START,$END,$NETMASK,12h" 
     26  args="-K -F $START,$END,$NETMASK,${lease:-12h}" 
    2627} 
    2728 
Note: See TracChangeset for help on using the changeset viewer.