mirror of
https://github.com/AuxXxilium/arc-addons.git
synced 2024-11-23 21:50:52 +07:00
cpufreqscaling: update logic
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
cb76ba3284
commit
6a33fe38ae
@ -14,7 +14,7 @@ if [ "${1}" = "late" ]; then
|
|||||||
cp -vf /usr/sbin/scaling.sh /tmpRoot/usr/sbin/scaling.sh
|
cp -vf /usr/sbin/scaling.sh /tmpRoot/usr/sbin/scaling.sh
|
||||||
[ ! -f "/tmpRoot/usr/bin/echo" ] && cp -vf /usr/bin/echo /tmpRoot/usr/bin/echo || true
|
[ ! -f "/tmpRoot/usr/bin/echo" ] && cp -vf /usr/bin/echo /tmpRoot/usr/bin/echo || true
|
||||||
cp -f /usr/lib/modules/acpi_cpufreq.ko /tmpRoot/usr/lib/modules/acpi_cpufreq.ko
|
cp -f /usr/lib/modules/acpi_cpufreq.ko /tmpRoot/usr/lib/modules/acpi_cpufreq.ko
|
||||||
[ "${2}" != "schedutil" ] && cp -vf /usr/lib/modules/cpufreq_${2}.ko /tmpRoot/usr/lib/modules/cpufreq_${2}.ko && modprobe cpufreq_${2} || true
|
[ "${2}" != "schedutil" ] && cp -vf /usr/lib/modules/cpufreq_${2}.ko /tmpRoot/usr/lib/modules/cpufreq_${2}.ko && insmod cpufreq_${2} || true
|
||||||
mkdir -p "/tmpRoot/usr/lib/systemd/system"
|
mkdir -p "/tmpRoot/usr/lib/systemd/system"
|
||||||
DEST="/tmpRoot/usr/lib/systemd/system/cpufreqscaling.service"
|
DEST="/tmpRoot/usr/lib/systemd/system/cpufreqscaling.service"
|
||||||
cat <<EOF >${DEST}
|
cat <<EOF >${DEST}
|
||||||
|
Loading…
Reference in New Issue
Block a user