From ec8b1031df42f0854327649a0d7761228d3acd40 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 4 May 2007 00:14:24 +0200 Subject: [PATCH] improve kernel check in create-scsi-mod-file.sh --- docs/building-process | 6 +++--- rewrite/create-scsi-mod-file.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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-) -- 2.1.4