From caef0fe1d4f7df7db2ffbb2cb1ea27b1e604704f Mon Sep 17 00:00:00 2001 From: Quad Date: Sun, 23 May 2021 00:16:48 +0200 Subject: [PATCH] Add error message for missing intel_rapl file --- scripts/tdp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/tdp b/scripts/tdp index 7ddead9..67547dc 100755 --- a/scripts/tdp +++ b/scripts/tdp @@ -283,6 +283,11 @@ gui_handler() { fi } +if ! ls $pl1_path > /dev/null 2>&1 || ! ls $pl2_path > /dev/null 2>&1; then + echo "Could not find intel_rapl endpoints, are you using a GPD Win 3?" + exit +fi + # Command handler # This checks which command was entered and forwards all other arguments to it case $1 in