X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fgrml-config;h=be216f398a1a0b3395f3f2f383b7095311733e31;hb=9375a86c1fe0f2936a7ff20f46aa98a4d5f1ffb3;hp=b7d1a2f0bef77fc47a34c28897361018ce77c44c;hpb=bcc0abeb27498124fcfe7770d590c1fb9c69076c;p=grml-scripts.git diff --git a/usr_sbin/grml-config b/usr_sbin/grml-config index b7d1a2f..be216f3 100755 --- a/usr_sbin/grml-config +++ b/usr_sbin/grml-config @@ -4,7 +4,6 @@ # 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'} @@ -13,7 +12,7 @@ PATH=${PATH:-'/bin/:/sbin/:/usr/bin:/usr/sbin'} DIALOG=$(which dialog) PN=$(basename $0) -if [ $UID != 0 ] ; then +if [ "$(id -ru)" != "0" ] ; then DEFAULTITEM=user else DEFAULTITEM=root @@ -35,13 +34,13 @@ retval=$? case $retval in 0) - if [ $MENU == root ]; then + if [ "$MENU" = "root" ]; then exec grml-config-root fi - if [ $MENU == user ]; then + if [ "$MENU" = "user" ]; then exec grml-config-user fi - if [ $MENU == exit ]; then + if [ "$MENU" = "exit" ]; then exit fi ;;