fix(auto-cpufreq): skip when install script is not used (#1215)
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user