mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-07-28 16:14:14 +02:00
parent
33b5c4ddfb
commit
5ca58e7885
@ -118,7 +118,7 @@ function tool_install {
|
|||||||
complete_msg
|
complete_msg
|
||||||
separator
|
separator
|
||||||
# Manjaro/Arch
|
# Manjaro/Arch
|
||||||
elif [ -f /etc/os-release ] && eval "$(cat /etc/os-release)" && [[ $ID == "manjaro" || $ID == "arch" || $ID == "endeavouros" || $ID == "garuda" ]]; then
|
elif [ -f /etc/os-release ] && eval "$(cat /etc/os-release)" && [[ $ID == "manjaro" || $ID == "arch" || $ID == "endeavouros" || $ID == "garuda" || $ID == "artix" ]]; then
|
||||||
separator
|
separator
|
||||||
echo -e "\nDetected an Arch Linux based distribution\n"
|
echo -e "\nDetected an Arch Linux based distribution\n"
|
||||||
echo -e "\nSetting up Python environment\n"
|
echo -e "\nSetting up Python environment\n"
|
||||||
@ -128,7 +128,9 @@ function tool_install {
|
|||||||
separator
|
separator
|
||||||
echo -e "\ninstalling auto-cpufreq tool\n"
|
echo -e "\ninstalling auto-cpufreq tool\n"
|
||||||
install
|
install
|
||||||
|
if [[ $ID != "artix" ]]; then
|
||||||
update_service_file
|
update_service_file
|
||||||
|
fi
|
||||||
separator
|
separator
|
||||||
complete_msg
|
complete_msg
|
||||||
separator
|
separator
|
||||||
|
@ -29,6 +29,21 @@ if [ -f /etc/os-release ] && eval "$(cat /etc/os-release)" && [[ $ID == "void"*
|
|||||||
sv start auto-cpufreq
|
sv start auto-cpufreq
|
||||||
sv up auto-cpufreq
|
sv up auto-cpufreq
|
||||||
|
|
||||||
|
elif [ -f /etc/os-release ] && eval "$(cat /etc/os-release)" && [[ $ID == "artix"* ]]; then
|
||||||
|
echo -e "\n* Deploy auto-cpufreq runit unit file"
|
||||||
|
mkdir /etc/runit/sv/auto-cpufreq
|
||||||
|
cp /usr/local/share/auto-cpufreq/scripts/run /etc/runit/sv/auto-cpufreq
|
||||||
|
chmod +x /etc/runit/sv/auto-cpufreq/run
|
||||||
|
|
||||||
|
echo -e "\n* Creating symbolic link (/run/runit/service/auto-cpufreq -> /etc/runit/sv/auto-cpufreq)"
|
||||||
|
ln -s /etc/runit/sv/auto-cpufreq /run/runit/service
|
||||||
|
|
||||||
|
echo -e "\n* Stopping auto-cpufreq daemon (runit) service"
|
||||||
|
sv stop auto-cpufreq
|
||||||
|
|
||||||
|
echo -e "\n* Starting auto-cpufreq daemon (runit) service"
|
||||||
|
sv start auto-cpufreq
|
||||||
|
sv up auto-cpufreq
|
||||||
|
|
||||||
# Install script for systemd
|
# Install script for systemd
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user