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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33337
@ -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."
|
||||
|
@ -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."
|
||||
|
@ -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."
|
||||
|
@ -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."
|
||||
|
@ -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."
|
||||
|
@ -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."
|
||||
|
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user