From 6a33fe38aec51a6b212fcffeb9cbc2f9fad412b5 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 19 Oct 2024 23:04:01 +0200 Subject: [PATCH] cpufreqscaling: update logic Signed-off-by: AuxXxilium --- cpufreqscaling/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpufreqscaling/install.sh b/cpufreqscaling/install.sh index 81da22b..663ccc4 100755 --- a/cpufreqscaling/install.sh +++ b/cpufreqscaling/install.sh @@ -14,7 +14,7 @@ if [ "${1}" = "late" ]; then 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 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" DEST="/tmpRoot/usr/lib/systemd/system/cpufreqscaling.service" cat <${DEST}