From 9dd72732bbe358858a03a7130bb0e0d8e4f85be8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 31 Mar 2007 00:39:55 +0000 Subject: [PATCH] allow dhcp sections for dnsmasq to add command line options SVN-Revision: 6767 --- package/dnsmasq/files/dnsmasq.init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 52973d4ca051..118564954f8e 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() { -- 2.30.2