bt-audio: check for presence of snd-bt-sco
[grml-scripts.git] / usr_sbin / grml-config
1 #!/bin/sh
2 # Filename:      grml-config
3 # Purpose:       main configuration interface for running configure scripts 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:59 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 if [ $UID != 0 ] ; then
17    DEFAULTITEM=user
18 else
19    DEFAULTITEM=root
20 fi
21
22 allover() {
23 MENU=$($DIALOG --stdout --clear --title "$PN" --default-item $DEFAULTITEM --menu \
24 "Please select the scripts you would like to run.
25
26 Report bugs, send whishes and feedback to the grml team:
27 http://www.grml.org/ - contact (at) grml.org
28
29 " 13 65 3 \
30 "root" "Admin scripts (needs root permissions)" \
31 "user" "User scripts" \
32 "exit" "Exit this program")
33
34 retval=$?
35
36 case $retval in
37   0)
38         if [ $MENU == root ]; then
39           exec grml-config-root
40         fi
41         if [ $MENU == user ]; then
42           exec grml-config-user
43         fi
44         if [ $MENU == exit ]; then
45           exit
46         fi
47         ;;
48   1)
49         echo "Cancel pressed.";;
50   255)
51         echo "ESC pressed.";;
52 esac
53 }
54
55 allover
56
57 ## END OF FILE #################################################################