#!/bin/sh find_package() { basename `/bin/ls -1 *.tgz | grep "^$1-"` .tgz; } #item ####description ###on off ### TMP=/var/log/setup/tmp if [ ! -d $TMP ] then mkdir -p $TMP fi cat /dev/null > $TMP/SeTnewtag dialog --title "SELECTING PACKAGES FROM SERIES U (UltraSPARC SOFTWARE)" \ --checklist "Please select the packages you wish to install \ from series U. Use the \ UP/DOWN keys to scroll through the list, and the SPACE key to select \ the packages you wish to install. Recommended packages have \ already been selected for you, but you may unselect them if you wish. \ Press ENTER when you are \ done." 13 70 2 \ "afbinit" "Program for loading AFB microcode" "on" \ "egcs64" "GNU C compiler for building sun4u kernels" "on" 2> $TMP/SeTpkgs if [ $? = 1 -o $? = 255 ] then rm -f $TMP/SeTpkgs > $TMP/SeTnewtag for pkg in afbinit egcs64 do # rpkg="`find_package $pkg`" # echo "$rpkg: SKP" >> $TMP/SeTnewtag echo "$pkg: SKP" >> $TMP/SeTnewtag done exit fi cat /dev/null > $TMP/SeTnewtag for PACKAGE in afbinit egcs64 do # rpkg="`find_package $PACKAGE`" if fgrep \"$PACKAGE\" $TMP/SeTpkgs 1> /dev/null 2> /dev/null then # echo "$rpkg: ADD" >> $TMP/SeTnewtag echo "$PACKAGE: ADD" >> $TMP/SeTnewtag else # echo "$rpkg: SKP" >> $TMP/SeTnewtag echo "$PACKAGE: SKP" >> $TMP/SeTnewtag fi done rm -f $TMP/SeTpkgs