From 46ca03ff8a55cf1aa1009ded50eb2512f0a8bf0a Mon Sep 17 00:00:00 2001 From: Quad Date: Fri, 21 May 2021 10:30:18 +0200 Subject: [PATCH] Add option to set PL2=PL1 This argument makes more sense now that I think about it --- scripts/tdp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/tdp b/scripts/tdp index b4225cf..f8591fe 100755 --- a/scripts/tdp +++ b/scripts/tdp @@ -42,7 +42,7 @@ Example: Arguments: --detail, -d Prints PL2 as well as PL1 - --match-pl2, -m PL2 will be set to the same as PL1 rather than 2W higher + --same, -s PL2 will be set to the same as PL1 rather than 2W higher --help Prints this help text" print_help () { @@ -159,7 +159,7 @@ set_tdp () { #PL2 local watts2=$(expr $watts + 2) - if [[ "$@" == *"--match-pl2"* ]] || [[ "$@" == *"-m"* ]]; then + if [[ "$@" == *"--same"* ]] || [[ "$@" == *"-s"* ]]; then watts2=$watts fi set_pl 2 $watts2