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