mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-19 23:43:42 +02:00
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
This commit is contained in:
parent
1aa13a0236
commit
38ba799c0a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user