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
|
||||||
update_service_file
|
if [[ $ID != "artix" ]]; then
|
||||||
|
update_service_file
|
||||||
|
fi
|
||||||
separator
|
separator
|
||||||
complete_msg
|
complete_msg
|
||||||
separator
|
separator
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
echo -e "\n------------------ Running auto-cpufreq daemon install script ------------------"
|
echo -e "\n------------------ Running auto-cpufreq daemon install script ------------------"
|
||||||
|
|
||||||
if [[ $EUID != 0 ]];
|
if [[ $EUID != 0 ]];
|
||||||
then
|
then
|
||||||
echo -e "\nERROR\nMust be run as root (i.e: 'sudo $0')\n"
|
echo -e "\nERROR\nMust be run as root (i.e: 'sudo $0')\n"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -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…
Reference in New Issue