mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
systemd: add prerm u-a calls
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
parent
b006355af5
commit
0c1147ad8d
|
|
@ -108,7 +108,6 @@ RRECOMMENDS_${PN} += "kbd kbd-consolefonts \
|
|||
|
||||
# TODO:
|
||||
# u-a for runlevel and telinit
|
||||
# u-a prerm
|
||||
|
||||
pkg_postinst_systemd () {
|
||||
update-alternatives --install ${base_sbindir}/init init ${base_bindir}/systemd 300
|
||||
|
|
@ -117,3 +116,11 @@ update-alternatives --install ${base_sbindir}/reboot reboot ${base_bindir}/syste
|
|||
update-alternatives --install ${base_sbindir}/shutdown shutdown ${base_bindir}/systemctl 300
|
||||
update-alternatives --install ${base_sbindir}/poweroff poweroff ${base_bindir}/systemctl 300
|
||||
}
|
||||
|
||||
pkg_prerm_systemd () {
|
||||
update-alternatives --remove init ${base_bindir}/systemd
|
||||
update-alternatives --remove halt ${base_bindir}/systemctl
|
||||
update-alternatives --remove reboot ${base_bindir}/systemctl
|
||||
update-alternatives --remove shutdown ${base_bindir}/systemctl
|
||||
update-alternatives --remove poweroff ${base_bindir}/systemctl
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user