summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-08-19 20:50:52 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-08-19 20:50:52 +0000
commite76b8552e23061a438bb00f9aae59d7a161f602c (patch)
tree1f34124f75015602031337a901a876a68bbd4a8c /package
parent5ef93ec8e1036f859001faacf4ea1f83885e4fb7 (diff)
Use a more explicit variable name for the number of dhcp leases (#2240)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8437 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/dnsmasq/files/dhcp.conf2
-rw-r--r--package/dnsmasq/files/dnsmasq.init6
2 files changed, 4 insertions, 4 deletions
diff --git a/package/dnsmasq/files/dhcp.conf b/package/dnsmasq/files/dhcp.conf
index 81453e764..fb55cf8b7 100644
--- a/package/dnsmasq/files/dhcp.conf
+++ b/package/dnsmasq/files/dhcp.conf
@@ -1,7 +1,7 @@
config dhcp
option interface lan
option start 100
- option end 150
+ option limit 150
option leasetime 12h
config dhcp
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init
index 14c77fb01..4d5b660aa 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}"
}