summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-01-17 01:15:50 +0000
committerthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-01-17 01:15:50 +0000
commit38ba799c0a985f6d42e7b6ab41f3f7353d662cad (patch)
tree75c06e501ca77b6326fc95c0c7c15c2ff503e83d
parent1aa13a02368803f81b642b9c648f5feab2c47eec (diff)
add option configure a custom netmask for dhcp clients Signed-off-by: Lorenz Schori <lorenz.schori@gmx.ch>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10216 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 776daddb41..4425504509 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