X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fgrml-config;h=0d00d389bf561832cc6c76300d140aad38363d60;hb=3b7f948896440f41092f14347b17ce114072c569;hp=208beb840a750308e9c62ada8076f824a37549c1;hpb=e720deae78f1eda5e6f62629606c194f16796762;p=grml-scripts.git diff --git a/usr_sbin/grml-config b/usr_sbin/grml-config deleted file mode 100755 index 208beb8..0000000 --- a/usr_sbin/grml-config +++ /dev/null @@ -1,57 +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 , (c) Michael Prokop -# Bug-Reports: see http://grml.org/bugs/ -# License: This file is licensed under the GPL v2. -# Latest change: Mon Dec 05 11:12:59 CET 2005 [mika] -################################################################################ - -PATH=${PATH:-'/bin/:/sbin/:/usr/bin:/usr/sbin'} - -# set up some variables -DIALOG=$(which dialog) -PN=$(basename $0) - -if [ $UID != 0 ] ; then - DEFAULTITEM=user -else - DEFAULTITEM=root -fi - -function 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)" \ -"user" "User scripts" \ -"exit" "Exit this program") - -retval=$? - -case $retval in - 0) - if [ $MENU == root ]; then - exec grml-config-root - fi - if [ $MENU == user ]; then - exec grml-config-user - fi - if [ $MENU == exit ]; then - exit - fi - ;; - 1) - echo "Cancel pressed.";; - 255) - echo "ESC pressed.";; -esac -} - -allover - -## END OF FILE ################################################################# diff --git a/usr_sbin/grml-config b/usr_sbin/grml-config new file mode 120000 index 0000000..0d00d38 --- /dev/null +++ b/usr_sbin/grml-config @@ -0,0 +1 @@ +grml-config-root \ No newline at end of file