diff options
author | peter <peter@FreeBSD.org> | 1999-07-08 18:56:04 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-07-08 18:56:04 +0000 |
commit | b972643acb1f4ec0dd512b9bb824aef005a7adde (patch) | |
tree | 19cfe80a1edf1f925d336c37e1100ad6c2007216 /etc/rc.network | |
parent | aa7ff8691d206532addb132f69fb5bcaccd9d15f (diff) | |
download | FreeBSD-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.network')
-rw-r--r-- | etc/rc.network | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/rc.network b/etc/rc.network index 5f49696..63b8a32 100644 --- a/etc/rc.network +++ b/etc/rc.network @@ -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} |