Skip to content

Commit

Permalink
Add exec permission for --install, --remove, and cpufreqctl (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uyonoh authored Dec 1, 2024
1 parent 18a3a93 commit 19e57bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions auto_cpufreq/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ def cpufreqctl():
"""
if not (IS_INSTALLED_WITH_SNAP or os.path.isfile("/usr/local/bin/cpufreqctl.auto-cpufreq")):
copy(SCRIPTS_DIR / "cpufreqctl.sh", "/usr/local/bin/cpufreqctl.auto-cpufreq")
call(["chmod", "a+x", "/usr/local/bin/cpufreqctl.auto-cpufreq"])

def cpufreqctl_restore():
"""
Expand Down Expand Up @@ -316,9 +317,11 @@ def deploy_daemon():

print("\n* Deploy auto-cpufreq install script")
copy(SCRIPTS_DIR / "auto-cpufreq-install.sh", "/usr/local/bin/auto-cpufreq-install")
call(["chmod", "a+x", "/usr/local/bin/auto-cpufreq-install"])

print("\n* Deploy auto-cpufreq remove script")
copy(SCRIPTS_DIR / "auto-cpufreq-remove.sh", "/usr/local/bin/auto-cpufreq-remove")
call(["chmod", "a+x", "/usr/local/bin/auto-cpufreq-remove"])

# output warning if gnome power profile is running
gnome_power_detect_install()
Expand Down

0 comments on commit 19e57bd

Please sign in to comment.