2 [ -n "$KERNEL" ] || KERNEL='2.6.20-grml'
3 for s in $(find /lib/modules/$KERNEL/kernel/drivers/scsi -name *.ko); do
4 # DEP=$(modinfo $s|grep '^depends:'|echo $(cut -d' ' -f2-))
5 DEP=$(modinfo $s|grep '^depends:'|cut -d' ' -f2-)
10 modinfo $s|grep '^alias:'|grep pci|while read a; do
11 echo $a $DEP $(basename $s|sed 's/\.ko//')|cut -f3- -d: