fix(auto-cpufreq): skip when install script is not used (#1215)

This commit is contained in:
Gideon
2025-11-08 11:00:03 +01:00
committed by GitHub
parent 22ab77de6d
commit ea1b286c98

View File

@@ -1116,6 +1116,12 @@ pub fn run_waydroid(ctx: &ExecutionContext) -> Result<()> {
pub fn run_auto_cpufreq(ctx: &ExecutionContext) -> Result<()> {
let auto_cpu_freq = require("auto-cpufreq")?;
if auto_cpu_freq != PathBuf::from("/usr/local/bin/auto-cpufreq") {
return Err(SkipStep(String::from(
"`auto-cpufreq` was not installed by the official installer, but presumably by a package manager.",
))
.into());
}
print_separator("auto-cpufreq");