From 22d95746a674f2ebb021ff65f92dc2d3d7e49486 Mon Sep 17 00:00:00 2001 From: natri23 Date: Thu, 24 Sep 2020 12:51:46 +0700 Subject: [PATCH] add support for Solus (#122) * add support for Solus add an instruction command to point auto-cpufreq.service to the right location to fix --install on Solus * using sed instead of awk * add "may requires root" to instructions * add Solus as a separate installer Add Solus as a separate installer instead of instructions * remove redundant instructions --- auto-cpufreq-installer | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/auto-cpufreq-installer b/auto-cpufreq-installer index ae4557a3..4afffd62 100755 --- a/auto-cpufreq-installer +++ b/auto-cpufreq-installer @@ -83,6 +83,22 @@ then separator complete_msg separator +# Solus +elif [ -f /etc/solus-release ]; +then + separator + echo -e "\nDetected Solus distribution\n" + echo -e "\nSetting up Python environment\n" + eopkg install pip python3 inxi + echo -e "\nInstalling necessary Python packages\n" + pip_pkg_install + separator + echo -e "\ninstalling auto-cpufreq tool\n" + install + sed -i 's/ExecStart=\/usr\/local\/bin\/auto-cpufreq/ExecStart=\/usr\/bin\/auto-cpufreq/' /usr/local/share/auto-cpufreq/scripts/auto-cpufreq.service + separator + complete_msg + separator # Other else separator