add option configure a custom netmask for dhcp clients Signed-off-by: Lorenz Schori <lorenz.schori@gmx.ch>

SVN-Revision: 10216
master
Travis Kemen 17 years ago
parent 351ca63dbf
commit e743dd5c81
  1. 3
      package/dnsmasq/files/dnsmasq.init

@ -188,7 +188,8 @@ dhcp_add() {
[ static = "$proto" ] || return 0 [ static = "$proto" ] || return 0
config_get ipaddr "$net" ipaddr 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 #check for an already active dhcp server on the interface, unless 'force' is set
config_get_bool force "$cfg" force 0 config_get_bool force "$cfg" force 0

Loading…
Cancel
Save