Deploy cpufreqctl on --debug and remove via installer (#351)

This commit is contained in:
bobslept 2022-01-08 19:05:15 +01:00 committed by GitHub
parent 3a4beb34c5
commit 7b7e82b2b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -170,6 +170,7 @@ function tool_remove {
wrapper_script="/usr/local/bin/auto-cpufreq"
unit_file="/etc/systemd/system/auto-cpufreq.service"
venv_path="/opt/auto-cpufreq"
cpufreqctl="/usr/bin/cpufreqctl.auto-cpufreq"
# stop any running auto-cpufreq argument (daemon/live/monitor)
tool_arg_pids=($(pgrep -f "auto-cpufreq --"))
@ -194,6 +195,7 @@ function tool_remove {
[ -f $stats_file ] && rm $stats_file
[ -f $unit_file ] && rm $unit_file
[ -f $wrapper_script ] && rm $wrapper_script
[ -f $cpufreqctl ] && rm $cpufreqctl
# remove python virtual environment
rm -rf "${venv_path}"

View File

@ -142,6 +142,7 @@ def main(config, daemon, debug, install, live, log, monitor, stats, version, don
# ToDo: add status of GNOME Power Profile servie status
config_info_dialog()
root_check()
cpufreqctl()
footer()
distro_info()
sysinfo()