summaryrefslogtreecommitdiff
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
parent328f9d26d8cf0e0bff177653c20fab338337816e (diff)
downloadmtk-20170518-038459c1259996a7d38efe970e245361c6e12bbf.zip
mtk-20170518-038459c1259996a7d38efe970e245361c6e12bbf.tar.gz
mtk-20170518-038459c1259996a7d38efe970e245361c6e12bbf.tar.bz2
Finally fix the usage of limit (#2240)
SVN-Revision: 8712
-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 49f1022..c39e584 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"