summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1999-04-10 10:56:58 +0000
committerdes <des@FreeBSD.org>1999-04-10 10:56:58 +0000
commit0a96c9181ded745c4371a9b88030dc943e4c0b2b (patch)
treedc58cbf0c7700843d1a64fd565b8b1cd440bf069 /etc/rc.d
parent4ea2c51252058b5f9a0a3caaed88e110a970de9d (diff)
downloadFreeBSD-src-0a96c9181ded745c4371a9b88030dc943e4c0b2b.zip
FreeBSD-src-0a96c9181ded745c4371a9b88030dc943e4c0b2b.tar.gz
Allow the user to specify a different firewall script than /etc/rc.firewall.
Diffstat (limited to 'etc/rc.d')
-rw-r--r--etc/rc.d/netoptions9
-rw-r--r--etc/rc.d/network19
-rw-r--r--etc/rc.d/network29
-rw-r--r--etc/rc.d/network39
-rw-r--r--etc/rc.d/routing9
5 files changed, 30 insertions, 15 deletions
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions
index e913c88..81cd4d2 100644
--- a/etc/rc.d/netoptions
+++ b/etc/rc.d/netoptions
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.41 1999/03/24 10:28:49 brian Exp $
+# $Id: rc.network,v 1.42 1999/03/28 20:36:03 imp Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -100,8 +100,11 @@ network_pass1() {
# Load the filters if required
if [ $firewall_in_kernel = 1 ]; then
- if [ -f /etc/rc.firewall -a X"$firewall_enable" = X"YES" ]; then
- . /etc/rc.firewall
+ if [ -z "${firewall_script}" ] ; then
+ firewall_script="/etc/rc.firewall"
+ fi
+ if [ -f ${firewall_script} -a X"$firewall_enable" = X"YES" ]; then
+ . ${firewall_script}
echo -n 'Firewall rules loaded, starting divert daemons: '
# Network Address Translation daemon
diff --git a/etc/rc.d/network1 b/etc/rc.d/network1
index e913c88..81cd4d2 100644
--- a/etc/rc.d/network1
+++ b/etc/rc.d/network1
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.41 1999/03/24 10:28:49 brian Exp $
+# $Id: rc.network,v 1.42 1999/03/28 20:36:03 imp Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -100,8 +100,11 @@ network_pass1() {
# Load the filters if required
if [ $firewall_in_kernel = 1 ]; then
- if [ -f /etc/rc.firewall -a X"$firewall_enable" = X"YES" ]; then
- . /etc/rc.firewall
+ if [ -z "${firewall_script}" ] ; then
+ firewall_script="/etc/rc.firewall"
+ fi
+ if [ -f ${firewall_script} -a X"$firewall_enable" = X"YES" ]; then
+ . ${firewall_script}
echo -n 'Firewall rules loaded, starting divert daemons: '
# Network Address Translation daemon
diff --git a/etc/rc.d/network2 b/etc/rc.d/network2
index e913c88..81cd4d2 100644
--- a/etc/rc.d/network2
+++ b/etc/rc.d/network2
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.41 1999/03/24 10:28:49 brian Exp $
+# $Id: rc.network,v 1.42 1999/03/28 20:36:03 imp Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -100,8 +100,11 @@ network_pass1() {
# Load the filters if required
if [ $firewall_in_kernel = 1 ]; then
- if [ -f /etc/rc.firewall -a X"$firewall_enable" = X"YES" ]; then
- . /etc/rc.firewall
+ if [ -z "${firewall_script}" ] ; then
+ firewall_script="/etc/rc.firewall"
+ fi
+ if [ -f ${firewall_script} -a X"$firewall_enable" = X"YES" ]; then
+ . ${firewall_script}
echo -n 'Firewall rules loaded, starting divert daemons: '
# Network Address Translation daemon
diff --git a/etc/rc.d/network3 b/etc/rc.d/network3
index e913c88..81cd4d2 100644
--- a/etc/rc.d/network3
+++ b/etc/rc.d/network3
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.41 1999/03/24 10:28:49 brian Exp $
+# $Id: rc.network,v 1.42 1999/03/28 20:36:03 imp Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -100,8 +100,11 @@ network_pass1() {
# Load the filters if required
if [ $firewall_in_kernel = 1 ]; then
- if [ -f /etc/rc.firewall -a X"$firewall_enable" = X"YES" ]; then
- . /etc/rc.firewall
+ if [ -z "${firewall_script}" ] ; then
+ firewall_script="/etc/rc.firewall"
+ fi
+ if [ -f ${firewall_script} -a X"$firewall_enable" = X"YES" ]; then
+ . ${firewall_script}
echo -n 'Firewall rules loaded, starting divert daemons: '
# Network Address Translation daemon
diff --git a/etc/rc.d/routing b/etc/rc.d/routing
index e913c88..81cd4d2 100644
--- a/etc/rc.d/routing
+++ b/etc/rc.d/routing
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.41 1999/03/24 10:28:49 brian Exp $
+# $Id: rc.network,v 1.42 1999/03/28 20:36:03 imp Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -100,8 +100,11 @@ network_pass1() {
# Load the filters if required
if [ $firewall_in_kernel = 1 ]; then
- if [ -f /etc/rc.firewall -a X"$firewall_enable" = X"YES" ]; then
- . /etc/rc.firewall
+ if [ -z "${firewall_script}" ] ; then
+ firewall_script="/etc/rc.firewall"
+ fi
+ if [ -f ${firewall_script} -a X"$firewall_enable" = X"YES" ]; then
+ . ${firewall_script}
echo -n 'Firewall rules loaded, starting divert daemons: '
# Network Address Translation daemon
OpenPOWER on IntegriCloud