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.
This commit is contained in:
parent
186a666128
commit
dbe11fd7dd
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh -
|
#!/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
|
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||||
|
|
||||||
# Note that almost all the user-configurable behavior is no longer in
|
# Note that almost all the user-configurable behavior is no longer in
|
||||||
@ -81,7 +81,8 @@ network_pass1() {
|
|||||||
. /etc/rc.firewall
|
. /etc/rc.firewall
|
||||||
echo "Firewall rules loaded."
|
echo "Firewall rules loaded."
|
||||||
else
|
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 -n "Warning: kernel has firewall functionality, "
|
||||||
echo "but firewall rules are not enabled."
|
echo "but firewall rules are not enabled."
|
||||||
echo " All ip services are disabled."
|
echo " All ip services are disabled."
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh -
|
#!/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
|
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||||
|
|
||||||
# Note that almost all the user-configurable behavior is no longer in
|
# Note that almost all the user-configurable behavior is no longer in
|
||||||
@ -81,7 +81,8 @@ network_pass1() {
|
|||||||
. /etc/rc.firewall
|
. /etc/rc.firewall
|
||||||
echo "Firewall rules loaded."
|
echo "Firewall rules loaded."
|
||||||
else
|
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 -n "Warning: kernel has firewall functionality, "
|
||||||
echo "but firewall rules are not enabled."
|
echo "but firewall rules are not enabled."
|
||||||
echo " All ip services are disabled."
|
echo " All ip services are disabled."
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh -
|
#!/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
|
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||||
|
|
||||||
# Note that almost all the user-configurable behavior is no longer in
|
# Note that almost all the user-configurable behavior is no longer in
|
||||||
@ -81,7 +81,8 @@ network_pass1() {
|
|||||||
. /etc/rc.firewall
|
. /etc/rc.firewall
|
||||||
echo "Firewall rules loaded."
|
echo "Firewall rules loaded."
|
||||||
else
|
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 -n "Warning: kernel has firewall functionality, "
|
||||||
echo "but firewall rules are not enabled."
|
echo "but firewall rules are not enabled."
|
||||||
echo " All ip services are disabled."
|
echo " All ip services are disabled."
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh -
|
#!/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
|
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||||
|
|
||||||
# Note that almost all the user-configurable behavior is no longer in
|
# Note that almost all the user-configurable behavior is no longer in
|
||||||
@ -81,7 +81,8 @@ network_pass1() {
|
|||||||
. /etc/rc.firewall
|
. /etc/rc.firewall
|
||||||
echo "Firewall rules loaded."
|
echo "Firewall rules loaded."
|
||||||
else
|
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 -n "Warning: kernel has firewall functionality, "
|
||||||
echo "but firewall rules are not enabled."
|
echo "but firewall rules are not enabled."
|
||||||
echo " All ip services are disabled."
|
echo " All ip services are disabled."
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh -
|
#!/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
|
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||||
|
|
||||||
# Note that almost all the user-configurable behavior is no longer in
|
# Note that almost all the user-configurable behavior is no longer in
|
||||||
@ -81,7 +81,8 @@ network_pass1() {
|
|||||||
. /etc/rc.firewall
|
. /etc/rc.firewall
|
||||||
echo "Firewall rules loaded."
|
echo "Firewall rules loaded."
|
||||||
else
|
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 -n "Warning: kernel has firewall functionality, "
|
||||||
echo "but firewall rules are not enabled."
|
echo "but firewall rules are not enabled."
|
||||||
echo " All ip services are disabled."
|
echo " All ip services are disabled."
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh -
|
#!/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
|
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||||
|
|
||||||
# Note that almost all the user-configurable behavior is no longer in
|
# Note that almost all the user-configurable behavior is no longer in
|
||||||
@ -81,7 +81,8 @@ network_pass1() {
|
|||||||
. /etc/rc.firewall
|
. /etc/rc.firewall
|
||||||
echo "Firewall rules loaded."
|
echo "Firewall rules loaded."
|
||||||
else
|
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 -n "Warning: kernel has firewall functionality, "
|
||||||
echo "but firewall rules are not enabled."
|
echo "but firewall rules are not enabled."
|
||||||
echo " All ip services are disabled."
|
echo " All ip services are disabled."
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh -
|
#!/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
|
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||||
|
|
||||||
# Note that almost all the user-configurable behavior is no longer in
|
# Note that almost all the user-configurable behavior is no longer in
|
||||||
@ -81,7 +81,8 @@ network_pass1() {
|
|||||||
. /etc/rc.firewall
|
. /etc/rc.firewall
|
||||||
echo "Firewall rules loaded."
|
echo "Firewall rules loaded."
|
||||||
else
|
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 -n "Warning: kernel has firewall functionality, "
|
||||||
echo "but firewall rules are not enabled."
|
echo "but firewall rules are not enabled."
|
||||||
echo " All ip services are disabled."
|
echo " All ip services are disabled."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user