aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/routing
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-07-08 18:56:04 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-07-08 18:56:04 +0000
commitd45821b19be44743befb4c5737c5831066ff51b8 (patch)
tree61f126496bdd746c68507bd834db73d9a5537aea /etc/rc.d/routing
parent025037833c25e47ad0b1b8ea2abc3dce253b0f97 (diff)
downloadsrc-d45821b19be44743befb4c5737c5831066ff51b8.tar.gz
src-d45821b19be44743befb4c5737c5831066ff51b8.zip
Tweak previous commit. Only sense the configuration if network_interfaces
is set to "auto". Any network_interfaces settings will be treated as before.
Notes
Notes: svn path=/head/; revision=48687
Diffstat (limited to 'etc/rc.d/routing')
-rw-r--r--etc/rc.d/routing8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/rc.d/routing b/etc/rc.d/routing
index 5f4969661258..63b8a3295640 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}