From 1569721691ba760f953a2136a262d944be061be3 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sun, 9 Jun 2024 16:07:03 +0200 Subject: [PATCH] cpuinfo: try something new Signed-off-by: AuxXxilium --- cpuinfo/all/usr/bin/cpuinfo.sh | 3 +++ cpuinfo/install.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cpuinfo/all/usr/bin/cpuinfo.sh b/cpuinfo/all/usr/bin/cpuinfo.sh index 106da63..3822e72 100755 --- a/cpuinfo/all/usr/bin/cpuinfo.sh +++ b/cpuinfo/all/usr/bin/cpuinfo.sh @@ -10,7 +10,10 @@ VENDOR="" 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 +while true; do SPEED="$(echo $(grep 'MHz' /proc/cpuinfo 2>/dev/null | head -1 | cut -d: -f2 | cut -d. -f1))" # int +[ ${SPEED} -ne 800 ] && break +done FILE_JS="/usr/syno/synoman/webman/modules/AdminCenter/admin_center.js" FILE_GZ="${FILE_JS}.gz" diff --git a/cpuinfo/install.sh b/cpuinfo/install.sh index 72064b3..2aafb6d 100755 --- a/cpuinfo/install.sh +++ b/cpuinfo/install.sh @@ -18,7 +18,7 @@ if [ "${1}" = "late" ]; then DEST="/tmpRoot/usr/lib/systemd/system/cpuinfo.service" echo "[Unit]" >${DEST} echo "Description=Adds correct CPU Info" >>${DEST} - echo "After=sysinit.target" >>${DEST} + echo "After=multi-user.target" >>${DEST} echo >>${DEST} echo "[Service]" >>${DEST} echo "Type=oneshot" >>${DEST}