diff options
author | alex <alex@FreeBSD.org> | 1998-01-10 03:33:39 +0000 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 1998-01-10 03:33:39 +0000 |
commit | 4881b1e50e753c1a77be50bfe7fd88fff0da4e61 (patch) | |
tree | a01fb1d0560f1b71db14a5168341274f8becfa8e /etc/network.subr | |
parent | e0d5cac89839c8ee905983e98064022932b8ccb8 (diff) | |
download | FreeBSD-src-4881b1e50e753c1a77be50bfe7fd88fff0da4e61.zip FreeBSD-src-4881b1e50e753c1a77be50bfe7fd88fff0da4e61.tar.gz |
Compare return code from ipfw against 0 for success instead of == 1
for error.
Pointed out by: Matthew Thyer <thyerm@camtech.net.au>
Diffstat (limited to 'etc/network.subr')
-rw-r--r-- | etc/network.subr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/network.subr b/etc/network.subr index 975fbf5..eac6f3f 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -1,6 +1,6 @@ #!/bin/sh - # -# $Id: rc.network,v 1.12 1997/11/07 20:45:34 sef Exp $ +# $Id: rc.network,v 1.13 1997/12/01 06:11:34 obrien Exp $ # From: @(#)netstart 5.9 (Berkeley) 3/30/91 # Note that almost all the user-configurable behavior is no longer in @@ -58,10 +58,10 @@ network_pass1() { # Initialize IP filtering using ipfw echo "" /sbin/ipfw -q flush > /dev/null 2>&1 - if [ $? = 1 ] ; then - firewall_in_kernel=0 - else + if [ $? = 0 ] ; then firewall_in_kernel=1 + else + firewall_in_kernel=0 fi if [ $firewall_in_kernel = 0 -a "x$firewall_enable" = "xYES" ] ; then |