Skip to content

Commit

Permalink
feat: Improve CPU detection
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Oct 14, 2024
1 parent 407ce1c commit 789f289
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 789f289

Please sign in to comment.