cpuinfo: try something new

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-06-09 16:07:03 +02:00
parent 06f2b541e2
commit 1569721691
2 changed files with 4 additions and 1 deletions

View File

@ -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"

View File

@ -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}