mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-04-08 17:05:56 +02:00
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 a91d4ba36e5f42d025b3978ee1178441b52a372f
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…
x
Reference in New Issue
Block a user