mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-16 09:22:06 +00:00
17 lines
492 B
Bash
17 lines
492 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# We are installing systemd-sysv but systemd is not running.
|
|
# This most likely means we are upgrading from another init, possibly a newer
|
|
# sysvinit version which created the initctl socket at /run/initctl.
|
|
# systemd's sysv tools expect the socket at /dev/initctl, so create the compat
|
|
# symlink ourselves.
|
|
if [ ! -e /sys/fs/cgroup/systemd ] ; then
|
|
if [ ! -p /dev/initctl ] && [ -p /run/initctl ] ; then
|
|
ln -sf /run/initctl /dev/initctl
|
|
fi
|
|
fi
|
|
|
|
#DEBHELPER#
|