X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fblacklist;h=ff9f2d00825f7df3f270833490a387e6a2b023be;hb=b0c3e5ff760f99d6ff7721852bc1a0d73c5ea201;hp=12c61d88e9e93253d397b6ed7f033d4678cce110;hpb=2317b08f35be9fe5a68da4d0cd893a24f3fbd93b;p=grml-scripts.git diff --git a/usr_sbin/blacklist b/usr_sbin/blacklist index 12c61d8..ff9f2d0 100755 --- a/usr_sbin/blacklist +++ b/usr_sbin/blacklist @@ -4,11 +4,10 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Thu Aug 07 17:16:23 CEST 2008 [mika] ################################################################################ PN="$(basename $0)" -[ -n "$MODPROBEFILE" ] || MODPROBEFILE=/etc/modprobe.d/grml +[ -n "$MODPROBEFILE" ] || MODPROBEFILE=/etc/modprobe.d/grml.conf [ -r /etc/grml/lsb-functions ] && . /etc/grml/lsb-functions if [ -z "$1" ] ; then @@ -17,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