Add error message for missing intel_rapl file

This commit is contained in:
Quad 2021-05-23 00:16:48 +02:00
parent d7a41e818b
commit caef0fe1d4
1 changed files with 5 additions and 0 deletions

View File

@ -283,6 +283,11 @@ gui_handler() {
fi 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 # Command handler
# This checks which command was entered and forwards all other arguments to it # This checks which command was entered and forwards all other arguments to it
case $1 in case $1 in