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
commit4fe43232315e62dd55a64f0cf39a1f5ff36e8d0f (patch)
tree90a6a687bd976488174c730a31d709072b0abf89 /package/dnsmasq
parent8b86453a9a887864510c5a5c4211237b45ebdd2b (diff)
downloadupstream-4fe43232315e62dd55a64f0cf39a1f5ff36e8d0f.tar.gz
upstream-4fe43232315e62dd55a64f0cf39a1f5ff36e8d0f.tar.bz2
upstream-4fe43232315e62dd55a64f0cf39a1f5ff36e8d0f.zip
Finally fix the usage of limit (#2240)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8712 3c298f89-4303-0410-b956-a3cf2f4a3e73
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"