2009-08-26 17:00:38 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#item ####description ###on off ###
|
|
|
|
TMP=/var/log/setup/tmp
|
|
|
|
if [ ! -d $TMP ]; then
|
|
|
|
mkdir -p $TMP
|
|
|
|
fi
|
|
|
|
add() {
|
|
|
|
for package in $* ; do
|
|
|
|
echo "$package: ADD" >> $TMP/SeTnewtag
|
|
|
|
done
|
|
|
|
}
|
|
|
|
skip() {
|
|
|
|
for package in $* ; do
|
|
|
|
echo "$package: SKP" >> $TMP/SeTnewtag
|
|
|
|
done
|
|
|
|
}
|
|
|
|
cat /dev/null > $TMP/SeTnewtag
|
|
|
|
dialog --title "SELECTING PACKAGES FROM SERIES Y (GAMES)" \
|
|
|
|
--checklist "Please confirm the packages you wish to install \
|
2018-05-28 21:12:29 +02:00
|
|
|
from series Y. Use the UP/DOWN keys to scroll through the list, and \
|
|
|
|
the SPACE key to deselect any items you don't want to install. \
|
2009-08-26 17:00:38 +02:00
|
|
|
Press ENTER when you are done." \
|
|
|
|
11 70 1 \
|
|
|
|
"bsd-games" "The BSD text games collection" "on" \
|
2024-12-24 00:43:54 +01:00
|
|
|
"gnugo" "GNU Go game engine" "on" \
|
2020-12-30 22:56:42 +01:00
|
|
|
"nethack" "Rogue-like game" "on" \
|
2009-08-26 17:00:38 +02:00
|
|
|
2> $TMP/SeTpkgs
|
|
|
|
if [ $? = 1 -o $? = 255 ]; then
|
|
|
|
rm -f $TMP/SeTpkgs
|
|
|
|
> $TMP/SeTnewtag
|
|
|
|
for pkg in \
|
2024-12-24 00:43:54 +01:00
|
|
|
bsd-games gnugo nethack \
|
2009-08-26 17:00:38 +02:00
|
|
|
; do
|
|
|
|
echo "$pkg: SKP" >> $TMP/SeTnewtag
|
|
|
|
done
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
cat /dev/null > $TMP/SeTnewtag
|
|
|
|
for PACKAGE in \
|
2024-12-24 00:43:54 +01:00
|
|
|
bsd-games gnugo nethack \
|
2009-08-26 17:00:38 +02:00
|
|
|
; do
|
2013-11-04 18:08:47 +01:00
|
|
|
if grep "\(^\| \)$PACKAGE\( \|$\)" $TMP/SeTpkgs 1> /dev/null 2> /dev/null ; then
|
2009-08-26 17:00:38 +02:00
|
|
|
echo "$PACKAGE: ADD" >> $TMP/SeTnewtag
|
|
|
|
else
|
|
|
|
echo "$PACKAGE: SKP" >> $TMP/SeTnewtag
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
rm -f $TMP/SeTpkgs
|