summaryrefslogtreecommitdiffstats
path: root/package/dnsmasq/files
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-09-09 16:05:14 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-09-09 16:05:14 +0000
commitcf8c1d5456b2302acf0cfa6b92e772b8fb21582f (patch)
tree90a6a687bd976488174c730a31d709072b0abf89 /package/dnsmasq/files
parentc8ae05cb22e9e21ceafb8ba8079ac814fccd8048 (diff)
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/files')
-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 49f10220b..c39e58417 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"