summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/network1
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/network1')
-rw-r--r--etc/rc.d/network15
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.d/network1 b/etc/rc.d/network1
index 4887042..5e68a3d 100644
--- a/etc/rc.d/network1
+++ b/etc/rc.d/network1
@@ -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