From 789f28992529785318894e73a723c0951bf68238 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 14 Oct 2024 18:02:23 +0200 Subject: [PATCH] feat: Improve CPU detection --- src/reset.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/reset.sh b/src/reset.sh index 40569687..49be99ed 100644 --- a/src/reset.sh +++ b/src/reset.sh @@ -63,8 +63,9 @@ if [ -z "${CPU// /}" ] && grep -qi "model:" <<< "$CPI"; then CPU=$(echo "$CPI" | grep -m 1 -i 'model:' | cut -f 2 -d ":" | awk '{$1=$1}1' | sed 's# @.*##g' | sed s/"(R)"//g | sed 's/[^[:alnum:] ]\+/ /g' | sed 's/ */ /g') fi -[ -z "${CPU// /}" ] && CPU="Unknown" +CPU="${CPU// Quad core CPU/}" CPU="${CPU// with Radeon Graphics/}" +[ -z "${CPU// /}" ] && CPU="Unknown" # Check system