aboutsummaryrefslogtreecommitdiffstats
path: root/package/dnsmasq
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-09-09 16:05:14 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-09-09 16:05:14 +0000
commit038459c1259996a7d38efe970e245361c6e12bbf (patch)
tree379e605e176f5a43164b4e6559c59bfa76bfb3f9 /package/dnsmasq
parent328f9d26d8cf0e0bff177653c20fab338337816e (diff)
downloadupstream-038459c1259996a7d38efe970e245361c6e12bbf.tar.gz
upstream-038459c1259996a7d38efe970e245361c6e12bbf.tar.bz2
upstream-038459c1259996a7d38efe970e245361c6e12bbf.zip
Finally fix the usage of limit (#2240)
SVN-Revision: 8712
Diffstat (limited to 'package/dnsmasq')
-rw-r--r--package/dnsmasq/files/dnsmasq.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init
index 49f10220bc..c39e58417f 100644
--- a/package/dnsmasq/files/dnsmasq.init
+++ b/package/dnsmasq/files/dnsmasq.init
@@ -195,7 +195,7 @@ dhcp_add() {
leasetime="${leasetime:-12h}"
start="$(dhcp_calc "${start:-100}")"
limit="$((${limit:-150} + 1))"
- eval "$(ipcalc.sh $ipaddr $netmask $start $end)"
+ eval "$(ipcalc.sh $ipaddr $netmask $start $limit)"
append args "--dhcp-range=$name,$START,$END,$NETMASK,$leasetime${options:+ $options}"
dhcp_option_add "$cfg" "$name"