blob: 039a3bf0bc1fa71f2fcd30ae4e79762d39128baf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/bin/sh
# $Id: menubox10,v 1.1 2004/07/31 11:04:04 tom Exp $
# zero-width column
: ${DIALOG=dialog}
exec 3>&1
value=`$DIALOG --backtitle "Debian Configuration" \
--title "Configuring debconf" \
--default-item Dialog \
--menu "Packages that use debconf for co" 19 50 6 \
Dialog "" \
Readline "" \
Gnome "" \
Kde "" \
Editor "" \
Noninteractive "" \
2>&1 1>&3`
retval=$?
exec 3>&-
case $retval in
0)
echo "$value chosen.";;
1)
echo "Cancel pressed.";;
2)
echo "Help pressed ($value)";;
255)
if test -n "$value" ; then
echo "$value"
else
echo "ESC pressed."
fi
;;
esac
|