summaryrefslogtreecommitdiffstats
path: root/etc/rc.network
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-12-11 23:30:34 +0000
committerimp <imp@FreeBSD.org>2002-12-11 23:30:34 +0000
commit1faabd6cbccaf0ab1ccecc74bcf0d54e1be3d4f0 (patch)
treee9c787e183b3e168a01de1d4e8e79ee97cefe3b9 /etc/rc.network
parentb3975bafdaaad110ba8e8daf8beea71e4b90a120 (diff)
downloadFreeBSD-src-1faabd6cbccaf0ab1ccecc74bcf0d54e1be3d4f0.zip
FreeBSD-src-1faabd6cbccaf0ab1ccecc74bcf0d54e1be3d4f0.tar.gz
o Don't do anything if the interface is already up.
o Only delay in pccard_ether when we're doing dhcp and starting the interface. Approved: (re blanket for devd)
Diffstat (limited to 'etc/rc.network')
-rw-r--r--etc/rc.network5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.network b/etc/rc.network
index 925876b..3d6282f 100644
--- a/etc/rc.network
+++ b/etc/rc.network
@@ -209,6 +209,11 @@ network_pass1() {
dhcp_interfaces=""
for ifn in ${network_interfaces}; do
+ if ifconfig ${interface} | grep -s UP,; 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