#!/bin/sh
#item   ####description                                      ###on off ###
cat /dev/null > /tmp/SeTnewtag
dialog --title "SELECTING SOFTWARE FROM SERIES A (BASE LINUX SYSTEM)" \
       --checklist "Please select the optional components you wish to install \
from series A. Use the \
UP/DOWN keys to scroll through the list, and the SPACE key to select \
the items you wish to install. \
(NOTE: The more important system packages are not listed here and will be installed \
automatically) \
Press ENTER when you are \
done." 20 72 9 \
"ide"  "Linux 2.0.30 no SCSI (YOU NEED 1 KERNEL)" "on" \
"scsi"  "Linux 2.0.30 with SCSI (YOU NEED 1 KERNEL)" "on" \
"bsdlpr" "BSD lpr - printer spooling system" "on" \
"loadlin" "Boots Linux (UMSDOS too!) from MS-DOS" "on" \
"ibcs2" "Runs SCO/SysVr4 binaries" "off" \
"pcmcia" "PCMCIA card services support" "off" \
"pnp" "Plug'n'Play configuration tool" "off" \
"getty" "Getty_ps 2.0.7e - OPTIONAL" "off" \
"scsimods" "Linux SCSI kernel modules" "off" \
"aoutlibs" "a.out shared libraries - RECOMMENDED" "on" \
"minicom" "Serial transfer and modem comm package" "on" \
"cpio" "The GNU cpio backup/archiving utility" "on" \
"kbd" "Change keyboard mappings and console fonts" "on" \
"gpm" "Cut and paste text with your mouse" "on" \
"zoneinfo" "Configures your time zone" "on" \
2> /tmp/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
 rm -f /tmp/SeTpkgs
 > /tmp/SeTnewtag
 for pkg in aaa_base aoutlibs bash cpio devs etc grep bin gzip e2fsbn elflibs \
  find getty gpm hdsetup ibcs2 ide kbd less ldso lilo loadlin bsdlpr pnp \
  umsprogs minicom modules ps sysklogd pcmcia scsi sh_utils sysvinit scsimods \
  shadow tar tcsh txtutils util zoneinfo ; do
  echo "$pkg: SKP" >> /tmp/SeTnewtag
 done
 exit
fi
cat /dev/null > /tmp/SeTnewtag
for PACKAGE in aaa_base bash devs etc shadow hdsetup lilo umsprogs sysvinit \
bin ldso less gzip ps elflibs util e2fsbn find grep sh_utils sysklogd \
bsdlpr modules tar txtutils tcsh ; do
  echo "$PACKAGE: ADD" >> /tmp/SeTnewtag
done
for PACKAGE in ide scsi getty aoutlibs minicom cpio kbd \
pnp scsimods gpm zoneinfo ibcs2 loadlin pcmcia ; 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
