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
This commit is contained in:
natri23 2020-09-24 12:51:46 +07:00 committed by GitHub
parent b7ec8472af
commit 22d95746a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -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