Drop grml-postfix
[grml-scripts.git] / usr_sbin / prepare_ramdisk.sh
index 7e94187..e7018fb 100755 (executable)
@@ -6,7 +6,7 @@
 # License:       This file is licensed under the GPL v2.
 ################################################################################
 
-if [ $UID != 0 ]; then
+if [ $(id -u) != 0 ] ; then
   echo "Error: $0 requires root permissions. Exiting."
   exit 1
 fi