2 # Filename: grml-config-root
3 # Purpose: interface for configuring your 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: Mit Jul 26 19:18:09 CEST 2006 [mika]
8 ################################################################################
10 PATH=${PATH:-'/bin/:/sbin/:/usr/bin:/usr/sbin'}
12 # set up some variables
18 $DIALOG --msgbox "Error: $0 requires root permissions. Exiting." 0 0
23 MENU=$($DIALOG --stdout --clear --title "$PN" --menu \
24 "Configure your grml system.
27 "grml-hostname" "Set hostname" \
28 "grml-setlang" "Configure system wide language settings" \
29 "grml-setkeyboard" "Configure system wide keyboard settings" \
30 "grml-nessus" "Prepare nessus for use on grml" \
31 "grml-network" "Configure network settings/setup" \
32 "grml-postfix" "Configure some basic settings of the postfix MTA" \
33 "grml-terminalserver" "Configure and start terminalserver for booting via network" \
34 "suspenduser" "Suspend a user account for indefinite time" \
35 "exit" "Exit this program")
41 if [ $MENU == grml-hostname ]; then
44 if [ $MENU == grml-setlang ]; then
47 if [ $MENU == grml-setkeyboard ]; then
50 if [ $MENU == grml-nessus ]; then
53 if [ $MENU == grml-network ]; then
56 if [ $MENU == grml-postfix ]; then
59 if [ $MENU == grml-terminalserver ]; then
60 exec grml-terminalserver
62 if [ $MENU == suspenduser ]; then
63 exec suspenduser_gui.sh
65 if [ $MENU == exit ]; then
70 echo "Cancel pressed.";;
78 ## END OF FILE #################################################################