X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fprepare_ramdisk.sh;h=e7018fb484db3b86c69e244de9b1627f3397a9e2;hb=b0c3e5ff760f99d6ff7721852bc1a0d73c5ea201;hp=50510d6677c79ce014969dee2e41e055a86db006;hpb=4cfd564318ea6a8d5bf6a83b59aa560ff150b14e;p=grml-scripts.git diff --git a/usr_sbin/prepare_ramdisk.sh b/usr_sbin/prepare_ramdisk.sh index 50510d6..e7018fb 100755 --- a/usr_sbin/prepare_ramdisk.sh +++ b/usr_sbin/prepare_ramdisk.sh @@ -4,10 +4,9 @@ # 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: Sam Okt 06 13:23:35 CEST 2007 [mika] ################################################################################ -if [ $UID != 0 ]; then +if [ $(id -u) != 0 ] ; then echo "Error: $0 requires root permissions. Exiting." exit 1 fi