Remove the script grml-config and set a symlink to grml-config-root
authorMarkus Rekkenbeil <markus@bionix-it.de>
Fri, 13 Sep 2013 08:09:40 +0000 (10:09 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 13 Sep 2013 08:18:56 +0000 (10:18 +0200)
Signed-off-by: Markus Rekkenbeil <bionix@grml.org>
manpages/grml-scripts.1
usr_sbin/grml-config [changed from file to symlink]

index 844d6a0..f40f146 100644 (file)
@@ -59,7 +59,8 @@ Blacklist module via module-init-tools (/etc/modprobe.d/grml).
 Check whether Debian's package management (dpkg) is running.
 Returns 0 if it is not running and 1 if it is already running.
 .SS grml-config
-Central configuration interface to configure the Grml system.
+Symlink for grml-config-root to manage admin configuration
+tasks over its interface.
 .SS grml-config-root
 Configuration interface for admin tasks on the Grml system.
 .SS grml-hostname
deleted file mode 100755 (executable)
index d6a5e3273cfdbc94cca7ad85101189324179e949..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-# Filename:      grml-config
-# Purpose:       main configuration interface for running configure scripts on grml system
-# Authors:       grml-team (grml.org), (c) Nico Golde <nico@grml.org>, (c) Michael Prokop <mika@grml.org>
-# Bug-Reports:   see http://grml.org/bugs/
-# License:       This file is licensed under the GPL v2.
-################################################################################
-
-PATH=${PATH:-'/bin/:/sbin/:/usr/bin:/usr/sbin'}
-
-# set up some variables
-DIALOG=$(which dialog)
-PN=$(basename $0)
-
-if [ "$(id -ru)" != "0" ] ; then
-   DEFAULTITEM=user
-else
-   DEFAULTITEM=root
-fi
-
-allover() {
-MENU=$($DIALOG --stdout --clear --title "$PN" --default-item $DEFAULTITEM --menu \
-"Please select the scripts you would like to run.
-
-Report bugs, send whishes and feedback to the grml team:
-http://www.grml.org/ - contact (at) grml.org
-
-" 13 65 3 \
-"root" "Admin scripts (needs root permissions)" \
-"exit" "Exit this program")
-
-retval=$?
-
-case $retval in
-  0)
-        if [ "$MENU" = "root" ]; then
-          exec grml-config-root
-        fi
-        if [ "$MENU" = "exit" ]; then
-          exit
-        fi
-        ;;
-  1)
-        echo "Cancel pressed.";;
-  255)
-        echo "ESC pressed.";;
-esac
-}
-
-allover
-
-## END OF FILE #################################################################
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..0d00d389bf561832cc6c76300d140aad38363d60
--- /dev/null
@@ -0,0 +1 @@
+grml-config-root
\ No newline at end of file