From b0706c58f0c8e25026c459223548b8d3ced1afdd Mon Sep 17 00:00:00 2001 From: Connor Frank Date: Sat, 11 Dec 2021 23:52:08 -0500 Subject: [PATCH] openrc fix This maintains consistency with the install.sh script by using the virtualenv that the script sets up. The original version was using a different interpreter and complained about missing imports. Additionally, the new shebang now points to the correct openrc-run executable. These were the only changes needed for this script to work on Gentoo. --- openrc/throttled | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openrc/throttled b/openrc/throttled index 5551d36..d440151 100644 --- a/openrc/throttled +++ b/openrc/throttled @@ -1,5 +1,5 @@ -#!/usr/bin/openrc-run -command="env python3 /usr/lib/throttled/throttled.py" +#!/sbin/openrc-run +command="/opt/throttled/venv/bin/python3 /opt/throttled/throttled.py" pidfile=${pidfile-/var/run/throttled.pid} description="Stop Intel throttling" command_background="yes"