diff options
author | Travis Kemen <thepeople@openwrt.org> | 2008-01-17 01:15:50 +0000 |
---|---|---|
committer | Travis Kemen <thepeople@openwrt.org> | 2008-01-17 01:15:50 +0000 |
commit | e1f607e92f876af17b846ac50d8512f5e53370b3 (patch) | |
tree | 75c06e501ca77b6326fc95c0c7c15c2ff503e83d /package/dnsmasq | |
parent | 965a889862ea667bee496f4ed767d25e47948283 (diff) | |
download | upstream-e1f607e92f876af17b846ac50d8512f5e53370b3.tar.gz upstream-e1f607e92f876af17b846ac50d8512f5e53370b3.tar.bz2 upstream-e1f607e92f876af17b846ac50d8512f5e53370b3.zip |
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
Diffstat (limited to 'package/dnsmasq')
-rw-r--r-- | package/dnsmasq/files/dnsmasq.init | 3 |
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 |