updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / systemd-git / systemd.install
blob27c211a250da4d13ebdd2521d381c1f8fab31848
1 #!/bin/sh
3 checkgroups() {
4 if ! getent group lock >/dev/null; then
5 groupadd -g 54 lock
6 fi
9 sd_booted() {
10 [ -e sys/fs/cgroups/systemd ]
13 post_install() {
14 checkgroups
16 if [ ! -f etc/machine-id ]; then
17 systemd-machine-id-setup
20 echo "systemd has been installed to /bin/systemd. Please ensure you append"
21 echo "init=/bin/systemd to your kernel command line in your bootloader."
24 post_upgrade() {
25 checkgroups
27 if [ ! -f etc/machine-id ]; then
28 systemd-machine-id-setup
31 if sd_booted; then
32 systemctl daemon-reexec >/dev/null
36 post_remove() {
37 if getent group lock >/dev/null; then
38 groupdel lock
42 # vim:set ts=2 sw=2 et: