[oe-commits] Martin Jansa : systemd: add prerm u-a calls
git at git.openembedded.org
git at git.openembedded.org
Mon Nov 21 11:10:58 UTC 2011
Module: meta-openembedded.git
Branch: master
Commit: 0c1147ad8da559ebc23c54f6c3d39b4c40dbf00a
URL: http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=0c1147ad8da559ebc23c54f6c3d39b4c40dbf00a
Author: Martin Jansa <martin.jansa at gmail.com>
Date: Mon Nov 21 09:45:30 2011 +0000
systemd: add prerm u-a calls
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
---
meta-oe/recipes-core/systemd/systemd_git.bb | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/meta-oe/recipes-core/systemd/systemd_git.bb b/meta-oe/recipes-core/systemd/systemd_git.bb
index 7b0771a..228e0e4 100644
--- a/meta-oe/recipes-core/systemd/systemd_git.bb
+++ b/meta-oe/recipes-core/systemd/systemd_git.bb
@@ -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
+}
More information about the Openembedded-commits
mailing list