summaryrefslogtreecommitdiffstats
path: root/scripts/t-rex-64
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/t-rex-64')
-rwxr-xr-xscripts/t-rex-645
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/t-rex-64 b/scripts/t-rex-64
index d33cc3e8..1cf82489 100755
--- a/scripts/t-rex-64
+++ b/scripts/t-rex-64
@@ -1,4 +1,9 @@
#! /bin/bash
+if [ $USER != 'root' ]; then
+ echo 'Error: Please run as root (sudo etc.)'
+ exit -1
+fi
+
./trex-cfg $@
RESULT=$?
if [ $RESULT -ne 0 ]; then