aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.network
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2002-12-11 23:30:34 +0000
committerWarner Losh <imp@FreeBSD.org>2002-12-11 23:30:34 +0000
commit39a61a1fda3c3dc2918be8a2f4d5dd5cddd98b79 (patch)
treee9c787e183b3e168a01de1d4e8e79ee97cefe3b9 /etc/rc.network
parent549bfb9273706f3c3fa66ead739239b9f755971e (diff)
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)
Notes
Notes: svn path=/head/; revision=107761
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 925876bbacca..3d6282f3442d 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