#!/bin/sh
#item   ####description                                      ###on off ###
cat /dev/null > /tmp/SeTnewtag
dialog --title "SELECTING PACKAGES FROM SERIES A (BASE LINUX SYSTEM)" \
       --checklist "Please select the packages you wish to install \
from series A. Use the \
UP/DOWN keys to scroll through the list, and the SPACE key to select \
the packages you wish to install. Certain important packages have \
already been selected for you, and you are cautioned against unselecting \
these packages. However, it's your system. :^)  For instance, be sure to \
install LILO or you won't be able to make system bootdisks. \
Press ENTER when you are \
done." 21 72 8 \
"aaa_base" "Basic filesystem, shell, and utils - REQUIRED" "on" \
"bash" "GNU bash-1.14.7 shell - REQUIRED" "on" \
"devs" "Device files found in /dev - REQUIRED" "on" \
"etc"  "System config files & utilities - REQUIRED" "on" \
"shadow" "Shadow password suite - REQUIRED" "on" \
"ide"  "Linux 2.0.30 no SCSI (YOU NEED 1 KERNEL)" "on" \
"scsi" "Linux 2.0.30 with SCSI (YOU NEED 1 KERNEL)" "on" \
"modules" "Modular Linux device drivers" "on" \
"scsimods" "Loadable SCSI device drivers" "off" \
"hdsetup" "Slackware setup scripts - REQUIRED" "on" \
"lilo" "Boots Linux (not UMSDOS), DOS, OS/2, etc." "on" \
"bsdlpr" "BSD lpr - printer spooling system" "on" \
"loadlin" "Boots Linux (UMSDOS too!) from MS-DOS" "on" \
"pnp" "Plug'n'Play configuration tool" "off" \
"umsprogs" "Utilities needed to use the UMSDOS filesystem" "on" \
"sysvinit" "System V-like INIT programs - REQUIRED" "on" \
"bin"      "GNU fileutils 3.12, elvis, etc. - REQUIRED" "on" \
"ldso" "Dynamic linker/loader - REQUIRED" "on" \
"ibcs2" "Runs SCO/SysVr4 binaries" "off" \
"less" "A text pager utility - REQUIRED" "on" \
"pcmcia" "PCMCIA card services support" "off" \
"getty" "Getty_ps 2.0.7e - OPTIONAL" "off" \
"gzip"  "The GNU zip compression - REQUIRED" "on" \
"ps" "Displays process info - REQUIRED" "on" \
"aoutlibs" "a.out shared libs - RECOMMENDED" "on" \
"elflibs" "The ELF shared C libraries - REQUIRED" "on" \
"util" "Util-linux utilities - REQUIRED" "on" \
"minicom" "Serial transfer and modem comm package" "on" \
"cpio" "The GNU cpio backup/archiving utility" "on" \
"e2fsbn" "Utilities for the ext2 file system" "on" \
"find" "GNU findutils 4.1" "on" \
"grep" "GNU grep 2.0" "on" \
"kbd" "Change keyboard mappings" "on" \
"gpm" "Cut and paste text with your mouse" "on" \
"sh_utils" "GNU sh-utils 1.16 - REQUIRED" "on" \
"sysklogd" "Logs system and kernel messages" "on" \
"tar" "GNU tar 1.12 - REQUIRED" "on" \
"tcsh" "Extended C shell version 6.07" "off" \
"txtutils" "GNU textutils-1.22 - REQUIRED" "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 devs etc shadow ide scsi lilo sysvinit bin ldso \
bash getty gzip ps aoutlibs elflibs util minicom cpio e2fsbn find grep kbd \
bsdlpr less gpm sh_utils hdsetup sysklogd tar tcsh txtutils zoneinfo \
modules scsimods ibcs2 umsprogs loadlin pcmcia pnp ; 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