Remove various scripts
[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 ################################################################################
8
9 PATH=${PATH:-'/bin/:/sbin/:/usr/bin:/usr/sbin'}
10
11 # set up some variables
12 DIALOG=$(which dialog)
13 PN=$(basename $0)
14
15 allover() {
16 MENU=$($DIALOG --stdout --clear --title "$PN" --menu \
17 "Configure userland tools." 0 0 0 \
18 "grml-mutt" "Configure the mutt MUA" \
19 "grml-slrn" "Configure the slrn newsreader" \
20 "exit" "Exit this program")
21
22 retval=$?
23
24 case $retval in
25   0)
26         if [ "$MENU" = "grml-mutt" ]; then
27           exec grml-mutt
28         fi
29         if [ "$MENU" = "grml-slrn" ]; then
30           exec grml-slrn
31         fi
32         if [ "$MENU" = "exit" ]; then
33           exit
34         fi
35         ;;
36   1)
37         echo "Cancel pressed.";;
38   255)
39         echo "ESC pressed.";;
40 esac
41 }
42
43 allover
44
45 ## END OF FILE #################################################################