From: Michael Prokop Date: Thu, 3 May 2007 22:14:24 +0000 (+0200) Subject: improve kernel check in create-scsi-mod-file.sh X-Git-Tag: 0.0.1~76 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=ec8b1031df42f0854327649a0d7761228d3acd40 improve kernel check in create-scsi-mod-file.sh --- diff --git a/docs/building-process b/docs/building-process index 16abd59..701c1db 100644 --- a/docs/building-process +++ b/docs/building-process @@ -116,7 +116,7 @@ EOF # cp /etc/locale.gen.minimal /etc/locale.gen && locale-gen # mv /etc/motd.dpkg-new /var/run/motd -# aptitude install dctrl-tools usbutils +# aptitude install dctrl-tools usbutils bzip2 pdmenu # apt-get clean # aptitude forget-new # umount /proc /sys 2>/dev/null @@ -328,7 +328,7 @@ grml ALL=NOPASSWD: ALL secvpn ALL=NOPASSWD: /usr/sbin/secvpn, /usr/sbin/pppd EOF -# aptitude install powernowd aumix alsa-utils hwinfo mdadm locales dctrl-tools usbutils sudo +# aptitude install powernowd aumix alsa-utils hwinfo mdadm locales dctrl-tools usbutils sudo bzip2 pdmenu # cp /etc/locale.gen.minimal /etc/locale.gen && locale-gen # mv /etc/motd.dpkg-new /var/run/motd @@ -682,7 +682,7 @@ aptitude install grml grml-x wget http://dufo.tugraz.at/~prokop/grml-kernel/2.6.20-grml/linux-image-2.6.20-grml64_grml.01_amd64.deb wget http://dufo.tugraz.at/~prokop/grml-kernel/2.6.20-grml/linux-headers-2.6.20-grml64_grml.01_amd64.deb -aptitude install dctrl-tools usbutils +aptitude install dctrl-tools usbutils bzip2 pdmenu aptitude install multitail htop iptstate idesk xserver-xorg-video-vmware diff --git a/rewrite/create-scsi-mod-file.sh b/rewrite/create-scsi-mod-file.sh index 6e299d6..aba5bdf 100644 --- a/rewrite/create-scsi-mod-file.sh +++ b/rewrite/create-scsi-mod-file.sh @@ -1,5 +1,5 @@ #!/bin/sh -KERNEL='2.6.19-grml' +[ -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-)