Update soundtest
[grml-scripts.git] / usr_bin / grml-config-user
1 #!/bin/sh
2 # Filename:      grml-config-user
3 # Purpose:       interface for configuring userland software on grml system
4 # Authors:       grml-team (grml.org), (c) Nico Golde <nico@grml.org>, (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2.
7 # Latest change: Mon Dec 05 11:12:49 CET 2005 [mika]
8 ################################################################################
9
10 PATH=${PATH:-'/bin/:/sbin/:/usr/bin:/usr/sbin'}
11
12 # set up some variables
13 DIALOG=$(which dialog)
14 PN=$(basename $0)
15
16 allover() {
17 MENU=$($DIALOG --stdout --clear --title "$PN" --menu \
18 "Configure userland tools." 0 0 0 \
19 "grml-mutt" "Configure the mutt MUA" \
20 "grml-muttng" "Configuration of mutt next generation" \
21 "grml-slrn" "Configure the slrn newsreader" \
22 "exit" "Exit this program")
23
24 retval=$?
25
26 case $retval in
27   0)
28         if [ $MENU == grml-mutt ]; then
29           exec grml-mutt
30         fi
31         if [ $MENU == grml-muttng ]; then
32           exec grml-muttng
33         fi
34         if [ $MENU == grml-slrn ]; then
35           exec grml-slrn
36         fi
37         if [ $MENU == exit ]; then
38           exit
39         fi
40         ;;
41   1)
42         echo "Cancel pressed.";;
43   255)
44         echo "ESC pressed.";;
45 esac
46 }
47
48 allover
49
50 ## END OF FILE #################################################################