Drop grml-postfix
[grml-scripts.git] / usr_sbin / blacklist
index 12c61d8..ff9f2d0 100755 (executable)
@@ -4,11 +4,10 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # 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