From f4962e868feb83a6fd09b831ca6c5e7c5d22b4d7 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Fri, 22 Nov 2024 15:17:34 +0100 Subject: [PATCH] cpuinfo: cleanup Signed-off-by: AuxXxilium --- cpuinfo/all/usr/bin/cpuinfo.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cpuinfo/all/usr/bin/cpuinfo.sh b/cpuinfo/all/usr/bin/cpuinfo.sh index 2105df5..526fa53 100755 --- a/cpuinfo/all/usr/bin/cpuinfo.sh +++ b/cpuinfo/all/usr/bin/cpuinfo.sh @@ -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"