X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fblacklist;h=ff9f2d00825f7df3f270833490a387e6a2b023be;hb=2512910567c874dc97e957675f8bfd3f94ff354d;hp=ff1189a44a64922ea0ca1538aed3a1227841880f;hpb=563c1126c42529d55738d97627f20dff86a6f209;p=grml-scripts.git diff --git a/usr_sbin/blacklist b/usr_sbin/blacklist index ff1189a..ff9f2d0 100755 --- a/usr_sbin/blacklist +++ b/usr_sbin/blacklist @@ -16,7 +16,7 @@ if [ -z "$1" ] ; then exit 1 fi -if [ $UID != 0 ] ; then +if [ "$(id -ru)" != "0" ] ; then echo Error: become root before starting $0 >& 2 exit 100 fi