Don't overwrite /usr/bin/cpufreqctl.auto-cpufreq excessively. (#420)
Looks like the behavior of constantly overwriting it was not intended,
but introduced inadvertently in a91d4ba36e
This commit is contained in:
parent
f67e909b59
commit
dad1c819fd
|
@ -296,9 +296,7 @@ def cpufreqctl():
|
|||
pass
|
||||
else:
|
||||
# deploy cpufreqctl.auto-cpufreq script
|
||||
if os.path.isfile("/usr/bin/cpufreqctl"):
|
||||
shutil.copy(SCRIPTS_DIR / "cpufreqctl.sh", "/usr/bin/cpufreqctl.auto-cpufreq")
|
||||
else:
|
||||
if not os.path.isfile("/usr/bin/cpufreqctl.auto-cpufreq"):
|
||||
shutil.copy(SCRIPTS_DIR / "cpufreqctl.sh", "/usr/bin/cpufreqctl.auto-cpufreq")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue