[Fai-commit] r6234 - trunk/lib

Thomas Lange lange at alioth.debian.org
Mon Dec 13 14:22:34 UTC 2010


Author: lange
Date: 2010-12-13 14:22:28 +0000 (Mon, 13 Dec 2010)
New Revision: 6234

Modified:
   trunk/lib/get-boot-info
Log:
do only list NICs which also have a link (means cable connected)


Modified: trunk/lib/get-boot-info
===================================================================
--- trunk/lib/get-boot-info	2010-12-13 11:37:27 UTC (rev 6233)
+++ trunk/lib/get-boot-info	2010-12-13 14:22:28 UTC (rev 6234)
@@ -41,7 +41,7 @@
 netdevice_info() {
 
     # devices that are running
-    netdevices_up=$(ip link show up | 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$].*LOWER_UP" | 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