summaryrefslogtreecommitdiffstats
path: root/etc/network.subr
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-12-12 09:31:10 +0000
committerimp <imp@FreeBSD.org>2002-12-12 09:31:10 +0000
commitbcca72ef4de288114951edb5e0a55f8ec80c84a5 (patch)
tree15aa79b05e54553b7d748797dd23c2fc568fb0a3 /etc/network.subr
parentcf2d9d0438ae055e251233cccefce07e00a6d3cc (diff)
downloadFreeBSD-src-bcca72ef4de288114951edb5e0a55f8ec80c84a5.zip
FreeBSD-src-bcca72ef4de288114951edb5e0a55f8ec80c84a5.tar.gz
o redirect the grep to /dev/null
o use ifn rather than interface in rc.network o merge into rc.d/network1 Approved by: (re blanket)
Diffstat (limited to 'etc/network.subr')
-rw-r--r--etc/network.subr5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/network.subr b/etc/network.subr
index 4887042..5e68a3d 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -146,6 +146,11 @@ network_start()
dhcp_interfaces=""
for ifn in ${network_interfaces}; do
+ if ifconfig ${ifn} | grep -s UP, > /dev/null 2>&1; then
+ # Interface is already up, so ignore it.
+ continue;
+ fi
+
if [ -r /etc/start_if.${ifn} ]; then
. /etc/start_if.${ifn}
eval showstat_$ifn=1
OpenPOWER on IntegriCloud