summaryrefslogtreecommitdiffstats
path: root/etc/network.subr
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/network.subr
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/network.subr')
-rw-r--r--etc/network.subr8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/network.subr b/etc/network.subr
index 5f49696..63b8a32 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -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