From ab966824c1a770f9cb2149a32a4085d37977d0b3 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Mon, 27 May 2024 20:12:02 +0200 Subject: [PATCH] cpuinfo: revert Signed-off-by: AuxXxilium --- cpuinfo/all/usr/bin/cpuinfo.sh | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/cpuinfo/all/usr/bin/cpuinfo.sh b/cpuinfo/all/usr/bin/cpuinfo.sh index dfdbb24..106da63 100755 --- a/cpuinfo/all/usr/bin/cpuinfo.sh +++ b/cpuinfo/all/usr/bin/cpuinfo.sh @@ -6,17 +6,11 @@ # See /LICENSE for more information. # -VENDOR="" -FAMILY="" -SERIES="$(echo $(grep 'model name' /proc/cpuinfo 2>/dev/null | head -1 | cut -d: -f2))" -if [ -z "${SERIES}" ]; then - SERIES="$(cat /proc/cpuinfo | grep -E "model name" | head -1 | cut -d: -f2)" -fi -CORES="$(grep 'cpu cores' /proc/cpuinfo 2>/dev/null | wc -l)" -SPEED="$(echo $(grep 'MHz' /proc/cpuinfo 2>/dev/null | head -1 | cut -d: -f2 | cut -d. -f1))" -if [ -z "${SPEED}"] || [ ${SPEED} -eq 800 ]; then - SPEED="$(cat /proc/cpuinfo | grep -E "cpu MHz" | head -1 | cut -d: -f2 | cut -d. -f1)" -fi +VENDOR="" # str +FAMILY="" # str +SERIES="$(echo $(grep 'model name' /proc/cpuinfo 2>/dev/null | head -1 | cut -d: -f2))" # str +CORES="$(grep 'cpu cores' /proc/cpuinfo 2>/dev/null | wc -l)" # str +SPEED="$(echo $(grep 'MHz' /proc/cpuinfo 2>/dev/null | head -1 | cut -d: -f2 | cut -d. -f1))" # int FILE_JS="/usr/syno/synoman/webman/modules/AdminCenter/admin_center.js" FILE_GZ="${FILE_JS}.gz"