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 ################################################################################
9 PATH=${PATH:-'/bin/:/sbin/:/usr/bin:/usr/sbin'}
11 # set up some variables
15 if [ "$(id -ru)" != "0" ] ; then
16 $DIALOG --msgbox "Error: $0 requires root permissions. Exiting." 0 0
21 MENU=$($DIALOG --stdout --clear --title "$PN" --menu \
22 "Configure your grml system.
25 "grml-hostname" "Set hostname" \
26 "grml-setlang" "Configure system wide language settings" \
27 "grml-setkeyboard" "Configure system wide keyboard settings" \
28 "grml-network" "Configure network settings/setup" \
29 "grml-terminalserver" "Configure and start terminalserver for booting via network" \
30 "exit" "Exit this program")
36 if [ "$MENU" = "grml-hostname" ]; then
39 if [ "$MENU" = "grml-setlang" ]; then
42 if [ "$MENU" = "grml-setkeyboard" ]; then
45 if [ "$MENU" = "grml-network" ]; then
48 if [ "$MENU" = "grml-terminalserver" ]; then
49 exec grml-terminalserver
51 if [ "$MENU" = "exit" ]; then
56 echo "Cancel pressed.";;
64 ## END OF FILE #################################################################