Renamed various init scripts (#317)
This commit is contained in:
parent
7236e674f4
commit
d0df29e33e
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue