X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fprepare_tmpfs.sh;h=229fa797a1f8d8767cc536050890cc377a93a45c;hb=0e386ce45a932b88a57d3de510f3e84d2a2ad7ef;hp=3208fccfa85402241b926ab8fe2b336c96752e92;hpb=9fef74081f53d30174118872324fa62d4a8145b5;p=grml-scripts.git diff --git a/usr_sbin/prepare_tmpfs.sh b/usr_sbin/prepare_tmpfs.sh index 3208fcc..229fa79 100755 --- a/usr_sbin/prepare_tmpfs.sh +++ b/usr_sbin/prepare_tmpfs.sh @@ -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