Resolves: bz 635893

This commit is contained in:
Neil Horman 2010-09-22 06:58:35 -04:00
parent 6e67ad7d42
commit be84f84fee

View File

@ -369,7 +369,9 @@ findstoragedriverinsys () {
[ "$PWD" = "/sys/devices" ] && return
cd ..
done
modalias=$(cat modalias)
modalias=$(cat $(find /sys/devices -name modalias | grep $(basename $(readlink ./device))))
for driver in $(modprobe --set-version $kernel --show-depends $modalias 2>/dev/null| awk '{ print gensub(".*/","","g",$2) }') ; do
findmodule ${driver%%.ko}
done