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