summaryrefslogtreecommitdiffstats
path: root/etc/rc.network
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1998-01-10 03:33:39 +0000
committeralex <alex@FreeBSD.org>1998-01-10 03:33:39 +0000
commit4881b1e50e753c1a77be50bfe7fd88fff0da4e61 (patch)
treea01fb1d0560f1b71db14a5168341274f8becfa8e /etc/rc.network
parente0d5cac89839c8ee905983e98064022932b8ccb8 (diff)
downloadFreeBSD-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/rc.network')
-rw-r--r--etc/rc.network8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.network b/etc/rc.network
index 975fbf5..eac6f3f 100644
--- a/etc/rc.network
+++ b/etc/rc.network
@@ -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
OpenPOWER on IntegriCloud