mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 05:20:02 +08:00
feat: Improve CPU detection (#831)
This commit is contained in:
parent
dab230f9d5
commit
906e61b1b2
@ -62,7 +62,8 @@ 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
|
||||
|
||||
CPU="${CPU// Quad core CPU/}"
|
||||
CPU="${CPU// CPU/}"
|
||||
CPU="${CPU// Quad core/}"
|
||||
CPU="${CPU// with Radeon Graphics/}"
|
||||
[ -z "${CPU// /}" ] && CPU="Unknown"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user