From 3ab148331a37ace6eb73d17bd3803602eabd7c17 Mon Sep 17 00:00:00 2001 From: Rodrigo Vivi Date: Thu, 13 Dec 2012 14:11:23 -0200 Subject: [PATCH] tools: intel_gpu_abrt checking for root access needed by other igt tools that are collecting more usefull information. --- tools/intel_gpu_abrt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/intel_gpu_abrt b/tools/intel_gpu_abrt index fe3684d1..9ca58c0e 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/${@:$#}