From 6e81a3ce2c0e419b074fa88329a609f8440dd319 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 1 Sep 2009 18:02:44 +0000 Subject: [PATCH] -Be more specific about locating a module (if their is any ambiguity in the fs structure, drivers failed to load) git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4070 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-nbroot/overlay/etc/init.d/S10autodetect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-nbroot/overlay/etc/init.d/S10autodetect b/xCAT-nbroot/overlay/etc/init.d/S10autodetect index 1aceb7e41..bdc95d5c9 100755 --- a/xCAT-nbroot/overlay/etc/init.d/S10autodetect +++ b/xCAT-nbroot/overlay/etc/init.d/S10autodetect @@ -23,7 +23,7 @@ do PCI=$(echo $i | awk -F% '{print $1}') VID="0x0000$(echo $i | awk -F% '{print $2}' |awk -F: '{print $1}')" DID="0x0000$(echo $i | awk -F% '{print $2}' |awk -F: '{print $2}')" - if egrep "^[^ ]*[ ]*$VID[ ]*$DID" /lib/modules/*/modules.pcimap >/dev/null + if egrep "^[^ ]*[ ]*$VID[ ]*$DID" /lib/modules/`uname -r`/modules.pcimap >/dev/null then TYPE=$( lspci | \ @@ -38,7 +38,7 @@ do sed 's/^ *//' ) MOD=$( - egrep "^[^ ]*[ ]*$VID[ ]*$DID" /lib/modules/*/modules.pcimap | \ + egrep "^[^ ]*[ ]*$VID[ ]*$DID" /lib/modules/`uname -r`/modules.pcimap | \ head -1 | \ awk '{print $1}' | \ tr -d '"'