summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>1998-02-14 04:12:23 +0000
committerAlexander Langer <alex@FreeBSD.org>1998-02-14 04:12:23 +0000
commitdbe11fd7ddbe7a0fab7b2bf79fc3a23a4d673246 (patch)
treeba4fc2f9579eb8a1ba5279d238b1d539f534c355
parent186a666128d145c778bc6a88877515b2594e8025 (diff)
Notes
-rw-r--r--etc/network.subr5
-rw-r--r--etc/rc.d/netoptions5
-rw-r--r--etc/rc.d/network15
-rw-r--r--etc/rc.d/network25
-rw-r--r--etc/rc.d/network35
-rw-r--r--etc/rc.d/routing5
-rw-r--r--etc/rc.network5
7 files changed, 21 insertions, 14 deletions
diff --git a/etc/network.subr b/etc/network.subr
index a3ef5d86fec4..cdc35bfd7229 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.15 1998/02/01 00:20:56 wollman Exp $
+# $Id: rc.network,v 1.16 1998/02/07 04:56:56 alex Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -81,7 +81,8 @@ network_pass1() {
. /etc/rc.firewall
echo "Firewall rules loaded."
else
- if ipfw l 65535 | grep deny; then
+ IPFW_DEFAULT=`ipfw l 65535`
+ if [ "$IPFW_DEFAULT" = "65535 deny ip from any to any" ]; then
echo -n "Warning: kernel has firewall functionality, "
echo "but firewall rules are not enabled."
echo " All ip services are disabled."
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions
index a3ef5d86fec4..cdc35bfd7229 100644
--- a/etc/rc.d/netoptions
+++ b/etc/rc.d/netoptions
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.15 1998/02/01 00:20:56 wollman Exp $
+# $Id: rc.network,v 1.16 1998/02/07 04:56:56 alex Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -81,7 +81,8 @@ network_pass1() {
. /etc/rc.firewall
echo "Firewall rules loaded."
else
- if ipfw l 65535 | grep deny; then
+ IPFW_DEFAULT=`ipfw l 65535`
+ if [ "$IPFW_DEFAULT" = "65535 deny ip from any to any" ]; then
echo -n "Warning: kernel has firewall functionality, "
echo "but firewall rules are not enabled."
echo " All ip services are disabled."
diff --git a/etc/rc.d/network1 b/etc/rc.d/network1
index a3ef5d86fec4..cdc35bfd7229 100644
--- a/etc/rc.d/network1
+++ b/etc/rc.d/network1
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.15 1998/02/01 00:20:56 wollman Exp $
+# $Id: rc.network,v 1.16 1998/02/07 04:56:56 alex Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -81,7 +81,8 @@ network_pass1() {
. /etc/rc.firewall
echo "Firewall rules loaded."
else
- if ipfw l 65535 | grep deny; then
+ IPFW_DEFAULT=`ipfw l 65535`
+ if [ "$IPFW_DEFAULT" = "65535 deny ip from any to any" ]; then
echo -n "Warning: kernel has firewall functionality, "
echo "but firewall rules are not enabled."
echo " All ip services are disabled."
diff --git a/etc/rc.d/network2 b/etc/rc.d/network2
index a3ef5d86fec4..cdc35bfd7229 100644
--- a/etc/rc.d/network2
+++ b/etc/rc.d/network2
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.15 1998/02/01 00:20:56 wollman Exp $
+# $Id: rc.network,v 1.16 1998/02/07 04:56:56 alex Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -81,7 +81,8 @@ network_pass1() {
. /etc/rc.firewall
echo "Firewall rules loaded."
else
- if ipfw l 65535 | grep deny; then
+ IPFW_DEFAULT=`ipfw l 65535`
+ if [ "$IPFW_DEFAULT" = "65535 deny ip from any to any" ]; then
echo -n "Warning: kernel has firewall functionality, "
echo "but firewall rules are not enabled."
echo " All ip services are disabled."
diff --git a/etc/rc.d/network3 b/etc/rc.d/network3
index a3ef5d86fec4..cdc35bfd7229 100644
--- a/etc/rc.d/network3
+++ b/etc/rc.d/network3
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.15 1998/02/01 00:20:56 wollman Exp $
+# $Id: rc.network,v 1.16 1998/02/07 04:56:56 alex Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -81,7 +81,8 @@ network_pass1() {
. /etc/rc.firewall
echo "Firewall rules loaded."
else
- if ipfw l 65535 | grep deny; then
+ IPFW_DEFAULT=`ipfw l 65535`
+ if [ "$IPFW_DEFAULT" = "65535 deny ip from any to any" ]; then
echo -n "Warning: kernel has firewall functionality, "
echo "but firewall rules are not enabled."
echo " All ip services are disabled."
diff --git a/etc/rc.d/routing b/etc/rc.d/routing
index a3ef5d86fec4..cdc35bfd7229 100644
--- a/etc/rc.d/routing
+++ b/etc/rc.d/routing
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.15 1998/02/01 00:20:56 wollman Exp $
+# $Id: rc.network,v 1.16 1998/02/07 04:56:56 alex Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -81,7 +81,8 @@ network_pass1() {
. /etc/rc.firewall
echo "Firewall rules loaded."
else
- if ipfw l 65535 | grep deny; then
+ IPFW_DEFAULT=`ipfw l 65535`
+ if [ "$IPFW_DEFAULT" = "65535 deny ip from any to any" ]; then
echo -n "Warning: kernel has firewall functionality, "
echo "but firewall rules are not enabled."
echo " All ip services are disabled."
diff --git a/etc/rc.network b/etc/rc.network
index a3ef5d86fec4..cdc35bfd7229 100644
--- a/etc/rc.network
+++ b/etc/rc.network
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.15 1998/02/01 00:20:56 wollman Exp $
+# $Id: rc.network,v 1.16 1998/02/07 04:56:56 alex Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -81,7 +81,8 @@ network_pass1() {
. /etc/rc.firewall
echo "Firewall rules loaded."
else
- if ipfw l 65535 | grep deny; then
+ IPFW_DEFAULT=`ipfw l 65535`
+ if [ "$IPFW_DEFAULT" = "65535 deny ip from any to any" ]; then
echo -n "Warning: kernel has firewall functionality, "
echo "but firewall rules are not enabled."
echo " All ip services are disabled."