summaryrefslogtreecommitdiff
path: root/community-testing/systemd/systemd.install
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-08-08 13:56:25 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-08-08 13:56:25 +0000
commit665308e50fd95e984da057ab8ddb6505b596b841 (patch)
tree5e25997f87cdddb052b9b26cbb285674cae6f3c2 /community-testing/systemd/systemd.install
parent0f9e4ba23bb6296d8bb8010f70d868fd08db9c54 (diff)
Mon Aug 8 13:56:24 UTC 2011
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: