projects
/
openwrt
/
staging
/
ansuel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47fce96
)
allow dhcp sections for dnsmasq to add command line options
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 31 Mar 2007 00:39:55 +0000
(
00:39
+0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 31 Mar 2007 00:39:55 +0000
(
00:39
+0000)
SVN-Revision: 6767
package/dnsmasq/files/dnsmasq.init
patch
|
blob
|
history
diff --git
a/package/dnsmasq/files/dnsmasq.init
b/package/dnsmasq/files/dnsmasq.init
index 52973d4ca051807200d62433c4ba538afbdb8ced..118564954f8e2d53c76f75da09753dc9d8f7e97e 100644
(file)
--- a/
package/dnsmasq/files/dnsmasq.init
+++ b/
package/dnsmasq/files/dnsmasq.init
@@
-46,12
+46,13
@@
dhcp_add() {
config_get start "$cfg" start
config_get end "$cfg" end
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)"
- append args "-F $START,$END,$NETMASK,$leasetime
"
+ append args "-F $START,$END,$NETMASK,$leasetime
${options:+ $options}"
}
start() {