projects
/
openwrt
/
staging
/
xback.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d36374c
)
add option to turn off dynamic dhcp closes #2694
author
Travis Kemen
<thepeople@openwrt.org>
Wed, 28 Nov 2007 03:02:20 +0000
(
03:02
+0000)
committer
Travis Kemen
<thepeople@openwrt.org>
Wed, 28 Nov 2007 03:02:20 +0000
(
03:02
+0000)
SVN-Revision: 9608
package/dnsmasq/files/dnsmasq.init
patch
|
blob
|
history
diff --git
a/package/dnsmasq/files/dnsmasq.init
b/package/dnsmasq/files/dnsmasq.init
index 75b20df0ebab90c3d73f732cd582300610191fdb..69f499a7dcd1ec592952df519314203dd9f2bbcb 100644
(file)
--- a/
package/dnsmasq/files/dnsmasq.init
+++ b/
package/dnsmasq/files/dnsmasq.init
@@
-200,11
+200,13
@@
dhcp_add() {
config_get limit "$cfg" limit
config_get leasetime "$cfg" leasetime
config_get options "$cfg" options
+ config_get_bool dynamicdhcp "$cfg" dynamicdhcp 1
leasetime="${leasetime:-12h}"
start="$(dhcp_calc "${start:-100}")"
limit="$((${limit:-150} + 1))"
eval "$(ipcalc.sh $ipaddr $netmask $start $limit)"
+ if [ "$dynamicdhcp" = "0" ]; then END="static"; fi
append args "--dhcp-range=$name,$START,$END,$NETMASK,$leasetime${options:+ $options}"
dhcp_option_add "$cfg" "$name"