aboutsummaryrefslogtreecommitdiffstats
path: root/package/dnsmasq/files
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
commit1ddb7378b9648d39ab47e368987267ef442154a4 (patch)
treeca326b159b4e973fd36291fb7e8cde932678e917 /package/dnsmasq/files
parent2d767ca61bf926bf7ba1986f95308551079b157f (diff)
downloadupstream-1ddb7378b9648d39ab47e368987267ef442154a4.tar.gz
upstream-1ddb7378b9648d39ab47e368987267ef442154a4.tar.bz2
upstream-1ddb7378b9648d39ab47e368987267ef442154a4.zip
allow dhcp sections for dnsmasq to add command line options
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6767 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/dnsmasq/files')
-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() {