summaryrefslogtreecommitdiff
path: root/community-testing/systemd/systemd.install
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/systemd/systemd.install')
-rw-r--r--community-testing/systemd/systemd.install42
1 files changed, 0 insertions, 42 deletions
diff --git a/community-testing/systemd/systemd.install b/community-testing/systemd/systemd.install
deleted file mode 100644
index a6c4dde12..000000000
--- a/community-testing/systemd/systemd.install
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-
-checkgroups() {
- usr/bin/getent group lock >/dev/null || usr/sbin/groupadd -g 54 lock
-}
-
-post_install() {
- checkgroups
-
- [ -f etc/machine-id ] || bin/systemd-machine-id-setup
-
- echo "systemd has been installed to /bin/systemd. Please ensure you append"
- echo "init=/bin/systemd to your kernel command line in your bootloader."
-}
-
-post_upgrade() {
- checkgroups
-
- [ -f etc/machine-id ] || bin/systemd-machine-id-setup
- bin/systemctl daemon-reexec >/dev/null || :
-
- newpkgver=${1%-*}
- oldpkgver=${2%-*}
-
- # catch v31 need for restarting systemd-logind.service
- if [ "$newpkgver" -ge 31 ] && [ "$oldpkgver" -lt 31 ]; then
- # but only if systemd is running
- if [ -d sys/fs/cgroup/systemd ]; then
- bin/systemctl try-restart systemd-logind.service
- fi
- fi
-}
-
-pre_remove() {
- bin/rm -f etc/systemd/system/default.target
-}
-
-post_remove() {
- usr/bin/getent group lock >/dev/null && usr/sbin/groupdel lock
-}
-
-# vim:set ts=2 sw=2 et: