tools: intel_gpu_abrt checking for root access

needed by other igt tools that are collecting more usefull information.
This commit is contained in:
Rodrigo Vivi 2012-12-13 14:11:23 -02:00 committed by Daniel Vetter
parent 616a4de567
commit 3ab148331a

View File

@ -1,5 +1,10 @@
#!/bin/sh
if [[ $UID -ne 0 ]]; then
echo "$0 must be run as root"
exit 1
fi
get(){
if [ ! -e $tardir/${@:$#} ] ; then
mkdir -p $tardir/${@:$#}