#!/bin/sh
#item   ####description                                      ###on off ###
rm -f /tmp/SeTnewtag # empty the return file
dialog --title "SELECTING PACKAGES FOR SERIES Q (EXTRA KERNEL IMAGES)" \
       --checklist "Please select the package you wish to install \
from series Q. Use the UP/DOWN keys to scroll through the list, and the SPACE \
key to select the packages you wish to install. Select a maximum of one kernel \
image, and make sure to reinstall LILO before rebooting (if you use it). \
If you have special hardware (like a CD-ROM drive) you ***MUST*** install \
a kernel that supports it, or it won't work when you reboot. Press ENTER \
when you are done." \
20 70 7 \
"aztech1" "1.2.13 image with Aztech/Orchid/Okano/Wearnes IF" "off" \
"aztech2" "1.2.13 image with Aztech/Orchid/Okano/Wearnes IF" "off" \
"bare" "1.2.13 image with IDE support only" "off" \
"cdu31a1" "1.2.13 image with SCSI, Sony CDU31/33a & net" "off" \
"cdu31a2" "1.2.13 image with SCSI, Sony CDU31/33a & net" "off" \
"cdu535_1" "1.2.13 image with SCSI, Sony CDU531/535 & net" "off" \
"cdu535_2" "1.2.13 image with SCSI, Sony CDU531/535 & net" "off" \
"idecd1" "1.2.13 image with EIDE/ATAPI CD-ROM support" "off" \
"idecd2" "1.2.13 image with EIDE/ATAPI CD-ROM support" "off" \
"idenet" "1.2.13 image with IDE and ethernet drivers" "off" \
"mitsumi1" "1.2.13 image with SCSI, Mitsumi CD, & net" "off" \
"mitsumi2" "1.2.13 image with SCSI, Mitsumi CD, & net" "off" \
"sbpcd1" "1.2.13 image with SCSI, SoundBlaster CD, & net" "off" \
"sbpcd2" "1.2.13 image with SCSI, SoundBlaster CD, & net" "off" \
"scsi" "1.2.13 image with SCSI disk, tape, and CD drivers" "off" \
"scsinet1" "1.2.13 image with SCSI and ethernet drivers" "off" \
"scsinet2" "1.2.13 image with SCSI and ethernet drivers" "off" \
"xt" "1.2.13 image with MFM/RLL hard disk drivers" "off" \
"aha2940" "1.3.18 image with Adaptec 294x support" "off" \
"aaztcd" "1.3.18 image with Aztech/Orchid/Okano/Wearnes IF" "off" \
"abare" "1.3.18 image with EIDE support" "off" \
"acdu31a" "1.3.18 image with SCSI and Sony CDU31/33a" "off" \
"acdu535" "1.3.18 image with SCSI and Sony CDU531/535" "off" \
"acm206" "1.3.18 image with Phillips cm206 CD support" "off" \
"agscd" "1.3.18 image with GoldStar R420 CD support" "off" \
"aidecd" "1.3.18 image with EIDE CD and SCSI support" "off" \
"amitsumi" "1.3.18 image with Mitsumi and SCSI support" "off" \
"aoptcd" "1.3.18 image with Optics Storage 8000 support" "off" \
"asbpcd" "1.3.18 image with SCSI and SoundBlaster CD" "off" \
"ascsi" "1.3.18 image with SCSI support" "off" \
"ascsint1" "1.3.18 image with network and 5 SCSI drivers" "off" \
"ascsint2" "1.3.18 image with network and 5 SCSI drivers" "off" \
"ascsint3" "1.3.18 image with network and 5 SCSI drivers" "off" \
"ascsint4" "1.3.18 image with network and 4 SCSI drivers" "off" \
"asjcd" "1.3.18 image with SCSI and Sanyo CD" "off" \
2> /tmp/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
 rm -f /tmp/SeTpkgs
 exit
fi
cat /dev/null > /tmp/SeTnewtag
for PACKAGE in  aaztcd abare acdu31a acdu535 acm206 agscd aidecd amitsumi \
aoptcd asbpcd ascsi ascsint1 ascsint2 ascsint3 ascsint4 asjcd aztech1 aztech2 \
bare cdu31a1 cdu31a2 cdu535_1 cdu535_2 idecd1 idecd2 idenet mitsumi1 mitsumi2 \
sbpcd1 sbpcd2 scsi scsinet1 scsinet2 xt aha2940 ; do
 if fgrep \"$PACKAGE\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then
  echo "$PACKAGE: ADD" >> /tmp/SeTnewtag
 else
  echo "$PACKAGE: SKP" >> /tmp/SeTnewtag
 fi
done
rm -f /tmp/SeTpkgs