From d0df29e33edcbfc6de18ffb3bb4243f2113c9d36 Mon Sep 17 00:00:00 2001 From: bobslept <38557801+bobslept@users.noreply.github.com> Date: Mon, 20 Dec 2021 19:13:39 +0100 Subject: [PATCH] Renamed various init scripts (#317) --- scripts/auto-cpufreq-install.sh | 4 ++-- scripts/{auto-cpufreq => auto-cpufreq-openrc} | 0 scripts/{run => auto-cpufreq-runit} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename scripts/{auto-cpufreq => auto-cpufreq-openrc} (100%) rename scripts/{run => auto-cpufreq-runit} (100%) diff --git a/scripts/auto-cpufreq-install.sh b/scripts/auto-cpufreq-install.sh index 1bae02e..b85811b 100755 --- a/scripts/auto-cpufreq-install.sh +++ b/scripts/auto-cpufreq-install.sh @@ -16,7 +16,7 @@ fi runit_ln() { echo -e "\n* Deploy auto-cpufreq runit unit file" mkdir "$1"/sv/auto-cpufreq - cp /usr/local/share/auto-cpufreq/scripts/run "$1"/sv/auto-cpufreq + cp /usr/local/share/auto-cpufreq/scripts/auto-cpufreq-runit "$1"/sv/auto-cpufreq/run chmod +x "$1"/sv/auto-cpufreq/run echo -e "\n* Creating symbolic link ($2/service/auto-cpufreq -> $1/sv/auto-cpufreq)" @@ -71,7 +71,7 @@ elif [ "$(ps h -o comm 1)" = "systemd" ];then # Install script for openrc elif [ "$(ps h -o comm 1)" = "init" ];then echo -e "\n* Deploying auto-cpufreq openrc unit file" - cp /usr/local/share/auto-cpufreq/scripts/auto-cpufreq /etc/init.d/auto-cpufreq + cp /usr/local/share/auto-cpufreq/scripts/auto-cpufreq-openrc /etc/init.d/auto-cpufreq chmod +x /etc/init.d/auto-cpufreq echo -e "Starting auto-cpufreq daemon (openrc) service" diff --git a/scripts/auto-cpufreq b/scripts/auto-cpufreq-openrc similarity index 100% rename from scripts/auto-cpufreq rename to scripts/auto-cpufreq-openrc diff --git a/scripts/run b/scripts/auto-cpufreq-runit similarity index 100% rename from scripts/run rename to scripts/auto-cpufreq-runit