diff options
Diffstat (limited to 'meta-oe/recipes-core')
-rw-r--r-- | 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 7b0771a00..228e0e4b3 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 \ | |||
108 | 108 | ||
109 | # TODO: | 109 | # TODO: |
110 | # u-a for runlevel and telinit | 110 | # u-a for runlevel and telinit |
111 | # u-a prerm | ||
112 | 111 | ||
113 | pkg_postinst_systemd () { | 112 | pkg_postinst_systemd () { |
114 | update-alternatives --install ${base_sbindir}/init init ${base_bindir}/systemd 300 | 113 | 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 | |||
117 | update-alternatives --install ${base_sbindir}/shutdown shutdown ${base_bindir}/systemctl 300 | 116 | update-alternatives --install ${base_sbindir}/shutdown shutdown ${base_bindir}/systemctl 300 |
118 | update-alternatives --install ${base_sbindir}/poweroff poweroff ${base_bindir}/systemctl 300 | 117 | update-alternatives --install ${base_sbindir}/poweroff poweroff ${base_bindir}/systemctl 300 |
119 | } | 118 | } |
119 | |||
120 | pkg_prerm_systemd () { | ||
121 | update-alternatives --remove init ${base_bindir}/systemd | ||
122 | update-alternatives --remove halt ${base_bindir}/systemctl | ||
123 | update-alternatives --remove reboot ${base_bindir}/systemctl | ||
124 | update-alternatives --remove shutdown ${base_bindir}/systemctl | ||
125 | update-alternatives --remove poweroff ${base_bindir}/systemctl | ||
126 | } | ||