3
# We are installing systemd-sysv but systemd is not running.
4
# This most likely means we are upgrading from another init, possibly a newer
5
# sysvinit version which created the initctl socket at /run/initctl.
6
# systemd's sysv tools expect the socket at /dev/initctl, so create the compat
8
if [ ! -e /sys/fs/cgroup/systemd ] ; then
9
if [ ! -p /dev/initctl ] && [ -p /run/initctl ] ; then
10
ln -sf /run/initctl /dev/initctl