mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
cpufreqscaling: update
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
2f1345d88f
commit
50b61f498e
@ -14,7 +14,7 @@ if [ "${1}" = "late" ]; then
|
|||||||
cp -vf /usr/sbin/scaler.sh /tmpRoot/usr/sbin/scaler.sh
|
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/unscaler.sh /tmpRoot/usr/sbin/unscaler.sh
|
||||||
cp -vf /usr/sbin/rescaler.sh /tmpRoot/usr/sbin/rescaler.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
|
if [ "${2}" = "userspace" ]; then
|
||||||
mkdir -p "/tmpRoot/usr/lib/systemd/system"
|
mkdir -p "/tmpRoot/usr/lib/systemd/system"
|
||||||
@ -33,6 +33,9 @@ Restart=on-failure
|
|||||||
RestartSec=30s
|
RestartSec=30s
|
||||||
ExecStart=/usr/sbin/scaler.sh
|
ExecStart=/usr/sbin/scaler.sh
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
[X-Synology]
|
[X-Synology]
|
||||||
Author=Virtualization Team
|
Author=Virtualization Team
|
||||||
EOF
|
EOF
|
||||||
@ -56,6 +59,9 @@ RestartSec=5s
|
|||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStart=/usr/sbin/rescaler.sh ${2}
|
ExecStart=/usr/sbin/rescaler.sh ${2}
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
[X-Synology]
|
[X-Synology]
|
||||||
Author=Virtualization Team
|
Author=Virtualization Team
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user