aboutsummaryrefslogtreecommitdiffstats
path: root/package/dnsmasq/files/dnsmasq.init
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-03-31 00:39:55 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-03-31 00:39:55 +0000
commit9dd72732bbe358858a03a7130bb0e0d8e4f85be8 (patch)
treeb8ef982b6468f41d14b60c226775312d96aa6140 /package/dnsmasq/files/dnsmasq.init
parent47fce96471c6e4dd3ecdddb1e25bdc5f763142bb (diff)
downloadupstream-9dd72732bbe358858a03a7130bb0e0d8e4f85be8.tar.gz
upstream-9dd72732bbe358858a03a7130bb0e0d8e4f85be8.tar.bz2
upstream-9dd72732bbe358858a03a7130bb0e0d8e4f85be8.zip
allow dhcp sections for dnsmasq to add command line options
SVN-Revision: 6767
Diffstat (limited to 'package/dnsmasq/files/dnsmasq.init')
-rw-r--r--package/dnsmasq/files/dnsmasq.init3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init
index 52973d4ca0..118564954f 100644
--- 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() {