From 41081a5bdf8c7fc982fbeebe0f246696d18ece33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D1=80=D0=B0=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D1=8B=D0=B9=20?= =?UTF-8?q?=D0=BC=D0=B0=D1=82=D0=B5=D1=80=D0=B8=D0=B0=D0=BB?= <78630225+aucub@users.noreply.github.com> Date: Mon, 4 Nov 2024 00:21:17 +0800 Subject: [PATCH] nix: fix prevent-install-and-copy.patch (#787) --- nix/patches/prevent-install-and-copy.patch | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/nix/patches/prevent-install-and-copy.patch b/nix/patches/prevent-install-and-copy.patch index a1c3e14..070399c 100644 --- a/nix/patches/prevent-install-and-copy.patch +++ b/nix/patches/prevent-install-and-copy.patch @@ -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(): @@ -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(): @@ -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) @@ -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) @@ -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) -