File: systemd-sysv.postinst

package info (click to toggle)
systemd 44-11%2Bdeb7u4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 12,064 kB
  • sloc: ansic: 88,811; xml: 13,909; sh: 11,726; makefile: 2,075; python: 207; awk: 11
file content (16 lines) | stat: -rw-r--r-- 492 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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#