From: Florian Fainelli Date: Sun, 19 Aug 2007 20:50:52 +0000 (+0000) Subject: Use a more explicit variable name for the number of dhcp leases (#2240) X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=4325ff78b85b66912397a99ac7609556311ce776;hp=8d4eac3a4d48bf76162b5e2c1ff80776fea07d32 Use a more explicit variable name for the number of dhcp leases (#2240) SVN-Revision: 8437 --- diff --git a/package/dnsmasq/files/dhcp.conf b/package/dnsmasq/files/dhcp.conf index 81453e7642..fb55cf8b77 100644 --- a/package/dnsmasq/files/dhcp.conf +++ b/package/dnsmasq/files/dhcp.conf @@ -1,7 +1,7 @@ config dhcp option interface lan option start 100 - option end 150 + option limit 150 option leasetime 12h config dhcp diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 14c77fb013..4d5b660aa5 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/package/dnsmasq/files/dnsmasq.init @@ -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}" }