mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-14 10:29:02 +08:00
26 lines
324 B
Bash
26 lines
324 B
Bash
#!/bin/sh
|
|
|
|
sd_booted() {
|
|
[ -e sys/fs/cgroup/systemd ]
|
|
}
|
|
|
|
post_install() {
|
|
udevadm hwdb --update
|
|
|
|
if sd_booted; then
|
|
systemctl --system daemon-reexec
|
|
fi
|
|
|
|
}
|
|
|
|
post_upgrade() {
|
|
udevadm hwdb --update
|
|
|
|
if sd_booted; then
|
|
systemctl --system daemon-reexec
|
|
systemctl restart systemd-logind.service
|
|
fi
|
|
|
|
}
|
|
|