summaryrefslogtreecommitdiff
path: root/package/dnsmasq/files/dnsmasq.init
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-08-19 20:50:52 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-08-19 20:50:52 +0000
commit92cd647b8b7d25efc28b804ab8be01a500268943 (patch)
tree7b321bacc74ee273c1e76d50428bb5057602cd1a /package/dnsmasq/files/dnsmasq.init
parent803dfa1be880185835507bcdb0586e165c14c5fb (diff)
downloadmtk-20170518-92cd647b8b7d25efc28b804ab8be01a500268943.zip
mtk-20170518-92cd647b8b7d25efc28b804ab8be01a500268943.tar.gz
mtk-20170518-92cd647b8b7d25efc28b804ab8be01a500268943.tar.bz2
Use a more explicit variable name for the number of dhcp leases (#2240)
SVN-Revision: 8437
Diffstat (limited to 'package/dnsmasq/files/dnsmasq.init')
-rw-r--r--package/dnsmasq/files/dnsmasq.init6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init
index 14c77fb..4d5b660 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}"
}