Index: rc.firewall =================================================================== RCS file: /cvs/freebsd/src/etc/rc.firewall,v retrieving revision 1.30.2.16 diff -u -r1.30.2.16 rc.firewall --- rc.firewall 10 Feb 2003 05:45:06 -0000 1.30.2.16 +++ rc.firewall 4 Nov 2003 21:09:05 -0000 @@ -40,6 +40,11 @@ fi fi +if [ "x$1" = "x-t" ]; then + firewall_test="YES" + shift +fi + ############ # Define the firewall type in /etc/rc.conf. Valid values are: # open - will allow anyone in @@ -99,6 +104,14 @@ ;; *) fwcmd="/sbin/ipfw" + ;; +esac + +case ${firewall_test} in +[Yy][Ee][Ss]) + fwcmd="echo ${fwcmd}" + ;; +*) ;; esac Index: rc.firewall6 =================================================================== RCS file: /cvs/freebsd/src/etc/rc.firewall6,v retrieving revision 1.1.2.11 diff -u -r1.1.2.11 rc.firewall6 --- rc.firewall6 10 Feb 2003 05:45:06 -0000 1.1.2.11 +++ rc.firewall6 4 Nov 2003 21:18:34 -0000 @@ -13,6 +13,11 @@ fi fi +if [ "x$1" = "x-t" ]; then + firewall_test="YES" + shift +fi + ############ # Define the firewall type in /etc/rc.conf. Valid values are: # open - will allow anyone in @@ -78,6 +83,14 @@ ;; *) fw6cmd="/sbin/ip6fw" + ;; +esac + +case ${firewall_test} in +[Yy][Ee][Ss]) + fw6cmd="echo ${fw6cmd}" + ;; +*) ;; esac