[Fai-commit] r6205 - branches/stable/3.4/lib
Michael Prokop
mika at alioth.debian.org
Tue Nov 30 22:40:10 UTC 2010
Author: mika
Date: 2010-11-30 22:40:10 +0000 (Tue, 30 Nov 2010)
New Revision: 6205
Modified:
branches/stable/3.4/lib/get-boot-info
Log:
only use interfaces that are up (closes: #600591)
Modified: branches/stable/3.4/lib/get-boot-info
===================================================================
--- branches/stable/3.4/lib/get-boot-info 2010-11-30 22:40:07 UTC (rev 6204)
+++ branches/stable/3.4/lib/get-boot-info 2010-11-30 22:40:10 UTC (rev 6205)
@@ -6,7 +6,7 @@
# bootinfo -- get boot information via DHCP or BOOTP protocol
#
# This script is part of FAI (Fully Automatic Installation)
-# (c) 2003-2008 by Thomas Lange, lange at informatik.uni-koeln.de
+# (c) 2003-2010 by Thomas Lange, lange at informatik.uni-koeln.de
# Universitaet zu Koeln
#
#*********************************************************************
@@ -41,7 +41,7 @@
netdevice_info() {
# devices that are running
- netdevices_up=$(ip link | grep "^[1-9$]" | cut -d : -f 2 | cut -d ' ' -f 2 | grep -v "^lo" | sort | uniq)
+ netdevices_up=$(ip link show up | grep "^[1-9$]" | cut -d : -f 2 | cut -d ' ' -f 2 | grep -v "^lo" | sort | uniq)
# netdevices is the list of ethernet devices which will be used for bootpc (maybe dhcp)
# if not defined, use boot messages to determine network devices
[ -n "$netdevices" ] || netdevices=$netdevices_up
More information about the Fai-commit
mailing list