mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
cpuinfo: cleanup
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
6271194522
commit
f4962e868f
@ -11,10 +11,7 @@ VENDOR=""
|
|||||||
FAMILY="" # str
|
FAMILY="" # str
|
||||||
SERIES="$(grep -m1 'model name' /proc/cpuinfo 2>/dev/null | cut -d: -f2 | xargs)" # str
|
SERIES="$(grep -m1 'model name' /proc/cpuinfo 2>/dev/null | cut -d: -f2 | xargs)" # str
|
||||||
CORES="$(grep -c 'cpu cores' /proc/cpuinfo 2>/dev/null)" # str
|
CORES="$(grep -c 'cpu cores' /proc/cpuinfo 2>/dev/null)" # str
|
||||||
SPEED="$(dmidecode 2>/dev/null | grep MHz | head -1 | cut -d: -f2 | cut -d ' ' -f2))" # int
|
|
||||||
if [ -z "${SPEED}" ] || [[ ! "${SPEED}" =~ ^[0-9]+$ ]]; then
|
|
||||||
SPEED="$(grep -m1 'MHz' /proc/cpuinfo 2>/dev/null | cut -d: -f2 | cut -d. -f1 | xargs)" # int
|
SPEED="$(grep -m1 'MHz' /proc/cpuinfo 2>/dev/null | cut -d: -f2 | cut -d. -f1 | xargs)" # int
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
FILE_JS="/usr/syno/synoman/webman/modules/AdminCenter/admin_center.js"
|
FILE_JS="/usr/syno/synoman/webman/modules/AdminCenter/admin_center.js"
|
||||||
|
Loading…
Reference in New Issue
Block a user