# 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: Sam Okt 06 13:23:59 CEST 2007 [mika]
################################################################################
-if [ $UID != 0 ]; then
+if [ $(id -u) != 0 ] ; then
echo "Error: $0 requires root permissions. Exiting."
exit 1
fi