#!/bin/sh add() { for package in $* ; do echo "$package: ADD" >> /tmp/SeTnewtag done } skip() { for package in $* ; do echo "$package: SKP" >> /tmp/SeTnewtag done } #item ####description ###on off ### cat /dev/null > /tmp/SeTnewtag dialog --title "SELECTING SOFTWARE FROM SERIES XD (X SERVER DEVELOPMENT)" \ --checklist "Please select the software you wish to install \ from series XD. Use the \ UP/DOWN keys to scroll through the list, and the SPACE key to select \ the items you wish to install. \ Press ENTER when you are \ done." 11 70 1 \ "linkkit" "XFree86 3.3.1 Linkkit" "off" \ 2> /tmp/SeTpkgs if [ $? = 1 -o $? = 255 ]; then rm -f /tmp/SeTpkgs > /tmp/SeTnewtag for pkg in x331kit1 x331kit2 x331kit3 ; do echo "$pkg: SKP" >> /tmp/SeTnewtag done exit fi cat /dev/null > /tmp/SeTnewtag if fgrep \"linkkit\" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then add x331kit1 x331kit2 x331kit3 else skip x331kit1 x331kit2 x331kit3 fi done rm -f /tmp/SeTpkgs