mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
cpuinfo: update
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
d51b93c234
commit
2375acbfba
@ -9,14 +9,14 @@
|
||||
VENDOR=""
|
||||
FAMILY=""
|
||||
SERIES="$(echo $(grep 'model name' /proc/cpuinfo 2>/dev/null | head -1 | cut -d: -f2))"
|
||||
CORES="$(grep 'cpu cores' /proc/cpuinfo 2>/dev/null | wc -l)"
|
||||
if [ -z ${CORES} ]; then
|
||||
CORES="$(dmidecode -t processor | grep "Core Count" | head -1 | cut -d: -f2)"
|
||||
if [ -z ${CORES} ]; then
|
||||
CORES="$(grep 'cpu cores' /proc/cpuinfo 2>/dev/null | wc -l)"
|
||||
fi
|
||||
SPEED="$(dmidecode -t processor | grep "Max Speed" | head -1 | cut -d: -f2 | cut -d ' ' -f2)"
|
||||
if [ -z ${SPEED} ]; then
|
||||
SPEED="$(grep 'cpu MHz' /proc/cpuinfo 2>/dev/null | head -1 | cut -d: -f2)"
|
||||
SPEED="${SPEED%.*}"
|
||||
if [ -z ${SPEED} || ${SPEED} -eq 800 ]; then
|
||||
SPEED="$(dmidecode -t processor | grep "Max Speed" | head -1 | cut -d: -f2 | cut -d ' ' -f2)"
|
||||
fi
|
||||
|
||||
FILE_JS="/usr/syno/synoman/webman/modules/AdminCenter/admin_center.js"
|
||||
|
Loading…
Reference in New Issue
Block a user