This package is no longer used.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

14 lines
595 B

#!/bin/sh
if [ -x "/usr/bin/openrc-init" ] && [ -x "/usr/bin/runit-init" ] && [ -r "/etc/runit/1" ]; then
echo " We detected two init systems are installed in your system."
echo " Use 'initswitch' to choose your init."
elif [ -x "/usr/bin/openrc-init" ]; then
ln -sf "openrc-init" "/usr/bin/init"
echo " Activated OpenRC as your init system."
elif [ -x "/usr/bin/runit-init" ] && [ -r "/etc/runit/1" ]; then
ln -sf "runit-init" "/usr/bin/init"
echo " Activated runit as your init system."
else
echo " You have no init systems installed."
echo " Install either openrc or runit-artix."
fi