2009-08-26 17:00:38 +02:00
|
|
|
#!/bin/sh
|
|
|
|
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
|
|
|
|
}
|
|
|
|
#item ####description ###on off ###
|
|
|
|
cat /dev/null > $TMP/SeTnewtag
|
|
|
|
dialog --title "SELECTING SOFTWARE FROM SERIES K (Linux kernel source)" \
|
|
|
|
--checklist "Please confirm the packages you wish to install \
|
2018-05-28 21:12:29 +02:00
|
|
|
from series K. 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 \
|
2024-12-15 01:11:13 +01:00
|
|
|
"kernel-source" "Linux 6.12.5 kernel source" "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 \
|
|
|
|
kernel-source \
|
|
|
|
; do
|
|
|
|
echo "$pkg: SKP" >> $TMP/SeTnewtag
|
|
|
|
done
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
cat /dev/null > $TMP/SeTnewtag
|
|
|
|
for PACKAGE in \
|
|
|
|
kernel-source \
|
|
|
|
; 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
|