summaryrefslogtreecommitdiffstats
path: root/etc/rc.network
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1998-02-14 04:12:23 +0000
committeralex <alex@FreeBSD.org>1998-02-14 04:12:23 +0000
commite01140a7270dd0b356eed3dc72d0aaea035cb1ed (patch)
treef63d84e40905f75e3eab60c5c2b3f59989661e75 /etc/rc.network
parent81b6e7dabd71aeee1c8f2cedabff1a9274b2b435 (diff)
downloadFreeBSD-src-e01140a7270dd0b356eed3dc72d0aaea035cb1ed.zip
FreeBSD-src-e01140a7270dd0b356eed3dc72d0aaea035cb1ed.tar.gz
Avoid using grep when determining ipfw's default policy -- it may not
be available at this stage of the boot if /usr is NFS mounted.
Diffstat (limited to 'etc/rc.network')
-rw-r--r--etc/rc.network5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/rc.network b/etc/rc.network
index a3ef5d8..cdc35bf 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."
OpenPOWER on IntegriCloud