diff options
author | Rodrigo Vivi <rodrigo.vivi@gmail.com> | 2012-12-13 14:11:23 -0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-12-13 18:15:34 +0100 |
commit | 3ab148331a37ace6eb73d17bd3803602eabd7c17 (patch) | |
tree | f990103d6be92f7c7d7988ffc4900ea07e644fce | |
parent | 616a4de567f574e42233b10d3546a3e1b5394e66 (diff) |
tools: intel_gpu_abrt checking for root access
needed by other igt tools that are collecting more usefull information.
-rwxr-xr-x | tools/intel_gpu_abrt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/intel_gpu_abrt b/tools/intel_gpu_abrt index fe3684d..9ca58c0 100755 --- a/tools/intel_gpu_abrt +++ b/tools/intel_gpu_abrt @@ -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/${@:$#} |