mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-07-07 05:44:34 +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
|
pass
|
||||||
else:
|
else:
|
||||||
# deploy cpufreqctl.auto-cpufreq script
|
# deploy cpufreqctl.auto-cpufreq script
|
||||||
if os.path.isfile("/usr/bin/cpufreqctl"):
|
if not os.path.isfile("/usr/bin/cpufreqctl.auto-cpufreq"):
|
||||||
shutil.copy(SCRIPTS_DIR / "cpufreqctl.sh", "/usr/bin/cpufreqctl.auto-cpufreq")
|
|
||||||
else:
|
|
||||||
shutil.copy(SCRIPTS_DIR / "cpufreqctl.sh", "/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