2012-09-09 12:17:16 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
sd_booted() {
|
|
|
|
[ -e sys/fs/cgroup/systemd ]
|
|
|
|
}
|
2012-11-22 07:30:08 +08:00
|
|
|
|
2012-09-09 12:17:16 +08:00
|
|
|
post_install() {
|
2012-11-26 07:15:39 +08:00
|
|
|
udevadm hwdb --update
|
2012-11-23 03:09:17 +08:00
|
|
|
|
2012-11-26 07:15:39 +08:00
|
|
|
mv /etc/systemd/system/getty.target.wants/getty@tty1new.service /etc/systemd/system/getty.target.wants/getty@tty1.service
|
|
|
|
|
2012-10-28 05:07:32 +08:00
|
|
|
if sd_booted; then
|
|
|
|
systemctl --system daemon-reexec
|
|
|
|
fi
|
2012-09-09 12:17:16 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
post_upgrade() {
|
2012-11-22 05:18:45 +08:00
|
|
|
udevadm hwdb --update
|
|
|
|
|
2012-11-22 07:30:08 +08:00
|
|
|
journalctl --update-catalog
|
|
|
|
|
2012-11-27 03:29:54 +08:00
|
|
|
mv /etc/systemd/system/getty.target.wants/getty@tty1.service /etc/systemd/system/getty.target.wants/getty@tty1.service.pacsave
|
|
|
|
mv /etc/systemd/system/getty.target.wants/getty@tty1new.service /etc/systemd/system/getty.target.wants/getty@tty1.service
|
|
|
|
rm /etc/systemd/system/getty.target.wants/getty@tty1.service.pacsave
|
2012-11-22 07:30:08 +08:00
|
|
|
|
2012-09-09 12:17:16 +08:00
|
|
|
if sd_booted; then
|
2012-10-28 05:07:32 +08:00
|
|
|
systemctl --system daemon-reexec
|
|
|
|
systemctl restart systemd-logind.service
|
2012-09-09 12:17:16 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
}
|
|
|
|
|