cpufreqscaling: update

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-07-26 16:22:58 +02:00
parent 2f1345d88f
commit 50b61f498e

View File

@ -14,7 +14,7 @@ if [ "${1}" = "late" ]; then
cp -vf /usr/sbin/scaler.sh /tmpRoot/usr/sbin/scaler.sh
cp -vf /usr/sbin/unscaler.sh /tmpRoot/usr/sbin/unscaler.sh
cp -vf /usr/sbin/rescaler.sh /tmpRoot/usr/sbin/rescaler.sh
cp -vf /usr/bin/echo /tmpRoot/usr/bin/echo
[ ! -f "/tmpRoot/usr/bin/echo" ] && cp -vf /usr/bin/echo /tmpRoot/usr/bin/echo
if [ "${2}" = "userspace" ]; then
mkdir -p "/tmpRoot/usr/lib/systemd/system"
@ -33,6 +33,9 @@ Restart=on-failure
RestartSec=30s
ExecStart=/usr/sbin/scaler.sh
[Install]
WantedBy=multi-user.target
[X-Synology]
Author=Virtualization Team
EOF
@ -56,6 +59,9 @@ RestartSec=5s
RemainAfterExit=yes
ExecStart=/usr/sbin/rescaler.sh ${2}
[Install]
WantedBy=multi-user.target
[X-Synology]
Author=Virtualization Team
EOF