Use a more explicit variable name for the number of dhcp leases (#2240)
authorFlorian Fainelli <florian@openwrt.org>
Sun, 19 Aug 2007 20:50:52 +0000 (20:50 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 19 Aug 2007 20:50:52 +0000 (20:50 +0000)
SVN-Revision: 8437

package/dnsmasq/files/dhcp.conf
package/dnsmasq/files/dnsmasq.init

index 81453e764250c6e1322414f5c41b41ba89ad4923..fb55cf8b774a866f8ef3712f74c4fa5d9dca006f 100644 (file)
@@ -1,7 +1,7 @@
 config dhcp
        option interface        lan
        option start    100
-       option end      150
+       option limit    150
        option leasetime        12h
 
 config dhcp
index 14c77fb013217f541762c43b0fc602a7490da2c5..4d5b660aa50968c4b35cb8f9b23c848353a7b388 100644 (file)
@@ -44,14 +44,14 @@ dhcp_add() {
        }
        
        config_get start "$cfg" start
-       config_get end "$cfg" end
+       config_get limit "$cfg" limit
        config_get leasetime "$cfg" leasetime
        config_get options "$cfg" options
 
        leasetime="${leasetime:-12h}"
        start="$(dhcp_calc "${start:-100}")"
-       end="$((${end:-150} + 1))"
-       eval "$(ipcalc.sh $ipaddr $netmask $start $end)"
+       limit="$((${limit:-150} + 1))"
+       eval "$(ipcalc.sh $ipaddr $netmask $start $limit)"
        append args "-F $START,$END,$NETMASK,$leasetime${options:+ $options}"
 }