Move all stuff to old/ and add live-initramfs and initial fai-stuff
[grml-live.git] / old / rewrite / create-scsi-mod-file.sh
diff --git a/old/rewrite/create-scsi-mod-file.sh b/old/rewrite/create-scsi-mod-file.sh
new file mode 100644 (file)
index 0000000..aba5bdf
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+[ -n "$KERNEL" ] || KERNEL='2.6.20-grml'
+for s in $(find /lib/modules/$KERNEL/kernel/drivers/scsi -name *.ko); do
+ # DEP=$(modinfo $s|grep '^depends:'|echo $(cut -d' ' -f2-))
+ DEP=$(modinfo $s|grep '^depends:'|cut -d' ' -f2-)
+ case $DEP in
+  *pcmcia*)
+   ;;
+  *)
+   modinfo $s|grep '^alias:'|grep pci|while read a; do
+    echo $a $DEP $(basename $s|sed 's/\.ko//')|cut -f3- -d:
+   done
+   ;;
+ esac
+done|sort|uniq