mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
tools: intel_gpu_abrt checking for root access
needed by other igt tools that are collecting more usefull information.
This commit is contained in:
parent
616a4de567
commit
3ab148331a
@ -1,5 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [[ $UID -ne 0 ]]; then
|
||||||
|
echo "$0 must be run as root"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
get(){
|
get(){
|
||||||
if [ ! -e $tardir/${@:$#} ] ; then
|
if [ ! -e $tardir/${@:$#} ] ; then
|
||||||
mkdir -p $tardir/${@:$#}
|
mkdir -p $tardir/${@:$#}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user