Index: head/etc/rc.d/ipfw =================================================================== --- head/etc/rc.d/ipfw +++ head/etc/rc.d/ipfw @@ -40,7 +40,11 @@ { local _firewall_type - _firewall_type=$1 + if [ -n "${1}" ]; then + _firewall_type=$1 + else + _firewall_type=${firewall_type} + fi # set the firewall rules script if none was specified [ -z "${firewall_script}" ] && firewall_script=/etc/rc.firewall Index: head/etc/rc.firewall =================================================================== --- head/etc/rc.firewall +++ head/etc/rc.firewall @@ -112,12 +112,20 @@ ${fwcmd} add pass ipv6-icmp from any to any icmp6types 2,135,136 } +. /etc/rc.subr +. /etc/network.subr + if [ -n "${1}" ]; then firewall_type="${1}" fi +if [ -z "${firewall_rc_config_load}" ]; then + load_rc_config ipfw +else + for i in ${firewall_rc_config_load}; do + load_rc_config $i + done +fi -. /etc/rc.subr -. /etc/network.subr afexists inet6 ipv6_available=$?