summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-07-08 18:56:04 +0000
committerpeter <peter@FreeBSD.org>1999-07-08 18:56:04 +0000
commitb972643acb1f4ec0dd512b9bb824aef005a7adde (patch)
tree19cfe80a1edf1f925d336c37e1100ad6c2007216 /etc/rc.d
parentaa7ff8691d206532addb132f69fb5bcaccd9d15f (diff)
downloadFreeBSD-src-b972643acb1f4ec0dd512b9bb824aef005a7adde.zip
FreeBSD-src-b972643acb1f4ec0dd512b9bb824aef005a7adde.tar.gz
Tweak previous commit. Only sense the configuration if network_interfaces
is set to "auto". Any network_interfaces settings will be treated as before.
Diffstat (limited to 'etc/rc.d')
-rw-r--r--etc/rc.d/netoptions8
-rw-r--r--etc/rc.d/network18
-rw-r--r--etc/rc.d/network28
-rw-r--r--etc/rc.d/network38
-rw-r--r--etc/rc.d/routing8
5 files changed, 25 insertions, 15 deletions
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions
index 5f49696..63b8a32 100644
--- a/etc/rc.d/netoptions
+++ b/etc/rc.d/netoptions
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.47 1999/06/08 13:00:30 brian Exp $
+# $Id: rc.network,v 1.48 1999/07/07 12:49:45 peter Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -51,8 +51,10 @@ network_pass1() {
done
# Set up all the network interfaces, calling startup scripts if needed
- interfaces="`ifconfig -l`"
- for ifn in ${interfaces}; do
+ if [ "x${network_interfaces}" = "xauto" ]; then
+ network_interfaces="`ifconfig -l`"
+ fi
+ for ifn in ${network_interfaces}; do
showstat=false
if [ -e /etc/start_if.${ifn} ]; then
. /etc/start_if.${ifn}
diff --git a/etc/rc.d/network1 b/etc/rc.d/network1
index 5f49696..63b8a32 100644
--- a/etc/rc.d/network1
+++ b/etc/rc.d/network1
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.47 1999/06/08 13:00:30 brian Exp $
+# $Id: rc.network,v 1.48 1999/07/07 12:49:45 peter Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -51,8 +51,10 @@ network_pass1() {
done
# Set up all the network interfaces, calling startup scripts if needed
- interfaces="`ifconfig -l`"
- for ifn in ${interfaces}; do
+ if [ "x${network_interfaces}" = "xauto" ]; then
+ network_interfaces="`ifconfig -l`"
+ fi
+ for ifn in ${network_interfaces}; do
showstat=false
if [ -e /etc/start_if.${ifn} ]; then
. /etc/start_if.${ifn}
diff --git a/etc/rc.d/network2 b/etc/rc.d/network2
index 5f49696..63b8a32 100644
--- a/etc/rc.d/network2
+++ b/etc/rc.d/network2
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.47 1999/06/08 13:00:30 brian Exp $
+# $Id: rc.network,v 1.48 1999/07/07 12:49:45 peter Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -51,8 +51,10 @@ network_pass1() {
done
# Set up all the network interfaces, calling startup scripts if needed
- interfaces="`ifconfig -l`"
- for ifn in ${interfaces}; do
+ if [ "x${network_interfaces}" = "xauto" ]; then
+ network_interfaces="`ifconfig -l`"
+ fi
+ for ifn in ${network_interfaces}; do
showstat=false
if [ -e /etc/start_if.${ifn} ]; then
. /etc/start_if.${ifn}
diff --git a/etc/rc.d/network3 b/etc/rc.d/network3
index 5f49696..63b8a32 100644
--- a/etc/rc.d/network3
+++ b/etc/rc.d/network3
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.47 1999/06/08 13:00:30 brian Exp $
+# $Id: rc.network,v 1.48 1999/07/07 12:49:45 peter Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -51,8 +51,10 @@ network_pass1() {
done
# Set up all the network interfaces, calling startup scripts if needed
- interfaces="`ifconfig -l`"
- for ifn in ${interfaces}; do
+ if [ "x${network_interfaces}" = "xauto" ]; then
+ network_interfaces="`ifconfig -l`"
+ fi
+ for ifn in ${network_interfaces}; do
showstat=false
if [ -e /etc/start_if.${ifn} ]; then
. /etc/start_if.${ifn}
diff --git a/etc/rc.d/routing b/etc/rc.d/routing
index 5f49696..63b8a32 100644
--- a/etc/rc.d/routing
+++ b/etc/rc.d/routing
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: rc.network,v 1.47 1999/06/08 13:00:30 brian Exp $
+# $Id: rc.network,v 1.48 1999/07/07 12:49:45 peter Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# Note that almost all the user-configurable behavior is no longer in
@@ -51,8 +51,10 @@ network_pass1() {
done
# Set up all the network interfaces, calling startup scripts if needed
- interfaces="`ifconfig -l`"
- for ifn in ${interfaces}; do
+ if [ "x${network_interfaces}" = "xauto" ]; then
+ network_interfaces="`ifconfig -l`"
+ fi
+ for ifn in ${network_interfaces}; do
showstat=false
if [ -e /etc/start_if.${ifn} ]; then
. /etc/start_if.${ifn}
OpenPOWER on IntegriCloud