Merge pull request #782 from AuxXxilium/dev

Dev
This commit is contained in:
AuxXxilium 2024-11-22 15:34:37 +01:00 committed by GitHub
commit eec8fb94be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,10 +11,7 @@ VENDOR=""
FAMILY="" # 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
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
fi
SPEED="$(grep -m1 'MHz' /proc/cpuinfo 2>/dev/null | cut -d: -f2 | cut -d. -f1 | xargs)" # int
FILE_JS="/usr/syno/synoman/webman/modules/AdminCenter/admin_center.js"