X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fblacklist;h=ff9f2d00825f7df3f270833490a387e6a2b023be;hb=b0c3e5ff760f99d6ff7721852bc1a0d73c5ea201;hp=ff1189a44a64922ea0ca1538aed3a1227841880f;hpb=2f63cad2a66b764da450f81151203f1ce37136d2;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