X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=sbin%2Fgrml-network;h=46393a6f131fe8639246cf01220c84bdf4a7fdec;hb=6491538dd1b832fcae56d058b2a0685f2e643460;hp=ac7cb4ec7cfcd8d2a76fbe31263fe19b3f0b9072;hpb=66fc88b890e452d7bf6ebde5a3404fc75d8dfa66;p=grml-network.git diff --git a/sbin/grml-network b/sbin/grml-network index ac7cb4e..46393a6 100755 --- a/sbin/grml-network +++ b/sbin/grml-network @@ -4,15 +4,13 @@ # Authors: (c) Klaus Knopper Mar 2004, (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Fre Apr 20 00:36:37 CEST 2007 [mika] ################################################################################ PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin" export PATH -if [ $UID != 0 ] ; then - echo Error: become root before starting $0 >& 2 - exit 100 +if [ $(id -ru) -ne 0 ] ; then + echo 1>&2 "Error: please run this script with uid 0 (root)." ; exit 1 fi # XDIALOG_HIGH_DIALOG_COMPAT=1