Skip to content

Commit

Permalink
add support for Solus (#122)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
natri23 authored Sep 24, 2020
1 parent b7ec847 commit 22d9574
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions auto-cpufreq-installer
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 22d9574

Please sign in to comment.