summaryrefslogtreecommitdiff
path: root/powertop.trisquel6
diff options
context:
space:
mode:
Diffstat (limited to 'powertop.trisquel6')
-rwxr-xr-xpowertop.trisquel65
1 files changed, 5 insertions, 0 deletions
diff --git a/powertop.trisquel6 b/powertop.trisquel6
index 2b9ee64..09a569b 100755
--- a/powertop.trisquel6
+++ b/powertop.trisquel6
@@ -20,6 +20,11 @@
set -u -e -v
+if [[ $EUID -ne 0 ]]; then
+ echo "This script must be run as root"
+ exit 1
+fi
+
# For Trisquel 6.0 (and 6.0.1) users.
# This may also work on other apt distros.