Skip to content

Commit

Permalink
nix: fix prevent-install-and-copy.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
aucub authored Nov 3, 2024
1 parent 6a13948 commit b0f7f94
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions nix/patches/prevent-install-and-copy.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py
index 6ee9986..5015982 100755
index 3475232..2dff5fb 100755
--- a/auto_cpufreq/core.py
+++ b/auto_cpufreq/core.py
@@ -260,18 +260,12 @@ def get_current_gov():
@@ -277,18 +277,12 @@ def get_current_gov():
)

def cpufreqctl():
Expand All @@ -25,7 +25,7 @@ index 6ee9986..5015982 100755

def footer(l=79): print("\n" + "-" * l + "\n")

@@ -287,27 +281,8 @@ def remove_complete_msg():
@@ -306,29 +300,8 @@ def remove_complete_msg():
footer()

def deploy_daemon():
Expand All @@ -47,6 +47,8 @@ index 6ee9986..5015982 100755
- gnome_power_detect_install()
- gnome_power_svc_disable()
-
- tuned_svc_disable()
-
- tlp_service_detect() # output warning if TLP service is detected
-
- call("/usr/local/bin/auto-cpufreq-install", shell=True)
Expand All @@ -55,7 +57,7 @@ index 6ee9986..5015982 100755

def deploy_daemon_performance():
print("\n" + "-" * 21 + " Deploying auto-cpufreq as a daemon (performance) " + "-" * 22 + "\n")
@@ -339,35 +314,7 @@ def deploy_daemon_performance():
@@ -360,37 +333,7 @@ def deploy_daemon_performance():

call("/usr/local/bin/auto-cpufreq-install", shell=True)

Expand All @@ -73,6 +75,8 @@ index 6ee9986..5015982 100755
- gnome_power_rm_reminder()
- gnome_power_svc_enable()
-
- tuned_svc_enable()
-
- # run auto-cpufreq daemon remove script
- call("/usr/local/bin/auto-cpufreq-remove", shell=True)
-
Expand Down

0 comments on commit b0f7f94

Please sign in to comment.