summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Kemen <thepeople@openwrt.org>2008-01-17 01:15:50 +0000
committerTravis Kemen <thepeople@openwrt.org>2008-01-17 01:15:50 +0000
commite743dd5c819e4ea83591d3f57eacc96437f4e257 (patch)
treec712f55544bea42fc342929f98179bfd5d16a36f
parent351ca63dbf79eb55195719e976df4ac4ef667d3c (diff)
downloadmtk-20170518-e743dd5c819e4ea83591d3f57eacc96437f4e257.zip
mtk-20170518-e743dd5c819e4ea83591d3f57eacc96437f4e257.tar.gz
mtk-20170518-e743dd5c819e4ea83591d3f57eacc96437f4e257.tar.bz2
add option configure a custom netmask for dhcp clients Signed-off-by: Lorenz Schori <lorenz.schori@gmx.ch>
SVN-Revision: 10216
-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 776dadd..4425504 100644
--- a/package/dnsmasq/files/dnsmasq.init
+++ b/package/dnsmasq/files/dnsmasq.init
@@ -188,7 +188,8 @@ dhcp_add() {
[ static = "$proto" ] || return 0
config_get ipaddr "$net" ipaddr
- config_get netmask "$net" netmask
+ config_get netmask "$cfg" netmask
+ [ -n "$netmask" ] || config_get netmask "$net" netmask
#check for an already active dhcp server on the interface, unless 'force' is set
config_get_bool force "$cfg" force 0