diff --git a/rc.subr b/rc.subr index 391ea04..2d97ee7 100755 --- a/rc.subr +++ b/rc.subr @@ -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 - eval dhcpd_ifaces=\"${dhcpd_ifaces} ${_card_dot_vlan}\" + if [ $(option_selected _no_dhcpv4) != "YES" ] + then + eval dhcpd_ifaces=\"${dhcpd_ifaces} ${_card_dot_vlan}\" + fi } _add_v6_prefixes()