[Fai-commit] r6174 - trunk/lib

Thomas Lange lange at alioth.debian.org
Wed Nov 3 13:32:16 UTC 2010


Author: lange
Date: 2010-11-03 13:32:09 +0000 (Wed, 03 Nov 2010)
New Revision: 6174

Modified:
   trunk/lib/get-boot-info
Log:
only use interfaces that are up (closes: #600591)


Modified: trunk/lib/get-boot-info
===================================================================
--- trunk/lib/get-boot-info	2010-11-03 13:18:48 UTC (rev 6173)
+++ trunk/lib/get-boot-info	2010-11-03 13:32:09 UTC (rev 6174)
@@ -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