Allow disabling dhcpv4 on internal ifaces.
This commit is contained in:
@@ -152,6 +152,7 @@ _compute_nets()
|
||||
shift 1
|
||||
|
||||
_priv="YES"
|
||||
_no_dhcpv4="NO"
|
||||
while true
|
||||
do
|
||||
case ${1} in
|
||||
@@ -163,6 +164,10 @@ _compute_nets()
|
||||
_isp=""
|
||||
;;
|
||||
|
||||
"no_dhcp")
|
||||
_no_dhcpv4="YES"
|
||||
;;
|
||||
|
||||
isp=*)
|
||||
_isp=`echo ${1} | sed -e 's/isp=//'`
|
||||
;;
|
||||
@@ -539,7 +544,10 @@ add_v4_net()
|
||||
else
|
||||
eval ifconfig_${_card_and_vlan}=\"${_extra_address} group internal ${_class_group} ${_extra_opts}\"
|
||||
fi
|
||||
if [ $(option_selected _no_dhcpv4) != "YES" ]
|
||||
then
|
||||
eval dhcpd_ifaces=\"${dhcpd_ifaces} ${_card_dot_vlan}\"
|
||||
fi
|
||||
}
|
||||
|
||||
_add_v6_prefixes()
|
||||
|
||||
Reference in New Issue
Block a user