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 ################################################################################
9 PATH=${PATH:-'/bin/:/sbin/:/usr/bin:/usr/sbin'}
11 # set up some variables
12 DIALOG=$(which dialog)
15 if [ "$(id -ru)" != "0" ] ; then
22 MENU=$($DIALOG --stdout --clear --title "$PN" --default-item $DEFAULTITEM --menu \
23 "Please select the scripts you would like to run.
25 Report bugs, send whishes and feedback to the grml team:
26 http://www.grml.org/ - contact (at) grml.org
29 "root" "Admin scripts (needs root permissions)" \
30 "user" "User scripts" \
31 "exit" "Exit this program")
37 if [ "$MENU" = "root" ]; then
40 if [ "$MENU" = "user" ]; then
43 if [ "$MENU" = "exit" ]; then
48 echo "Cancel pressed.";;
56 ## END OF FILE #################################################################