summaryrefslogtreecommitdiff
path: root/recipes/sysvinit
diff options
context:
space:
mode:
authorAnatoly Shipitsin <norguhtar@gmail.com>2010-08-25 17:02:48 +0000
committerKhem Raj <raj.khem@gmail.com>2010-09-05 21:37:51 -0700
commit15400707983ef079db5bc5bf550c265e8e2b889e (patch)
treef3ad501dfc67760546ee20a8c0a1c7896f2d6e0d /recipes/sysvinit
parentc6a72ee2b934017cfa31914886b32f1c58978c72 (diff)
sysvinit_2.86.bb: change sysvinit-utils for compatible with upstart
* move shutdown and runlevel to sysvinit package to halt and poweroff, upstart include this utils * move killall5 to sysvinit-utils, it used by scripts when system goes shutdown or halt, upstart not provide it * change PR = "r59" Signed-off-by: Anatoly Shipitsin <norguhtar@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/sysvinit')
-rw-r--r--recipes/sysvinit/sysvinit_2.86.bb8
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/sysvinit/sysvinit_2.86.bb b/recipes/sysvinit/sysvinit_2.86.bb
index 40c642ab45..aca524927c 100644
--- a/recipes/sysvinit/sysvinit_2.86.bb
+++ b/recipes/sysvinit/sysvinit_2.86.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "System-V like init."
SECTION = "base"
LICENSE = "GPLv2+"
HOMEPAGE = "http://freshmeat.net/projects/sysvinit/"
-PR = "r58"
+PR = "r59"
# USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf.
# Set PACKAGE_ARCH appropriately.
@@ -42,7 +42,7 @@ PACKAGES =+ "sysvinit-utils sysvinit-pidof sysvinit-sulogin"
FILES_${PN} += "${base_sbindir}/* ${base_bindir}/*"
FILES_sysvinit-pidof = "${base_bindir}/pidof.sysvinit"
FILES_sysvinit-sulogin = "${base_sbindir}/sulogin"
-FILES_sysvinit-utils = "${bindir}/last.${PN} ${bindir}/mesg.${PN} ${bindir}/wall.${PN} ${base_sbindir}/shutdown.${PN} ${bindir}/lastb ${bindir}/utmpdump ${base_sbindir}/runlevel"
+FILES_sysvinit-utils = "${bindir}/last.${PN} ${bindir}/mesg.${PN} ${bindir}/wall.${PN} ${bindir}/lastb ${bindir}/utmpdump ${base_sbindir}/killall5"
RRECOMMENDS_${PN} = "sysvinit-utils"
RRECOMMENDS_${PN}_micro = ""
@@ -112,6 +112,7 @@ pkg_postinst_${PN} () {
update-alternatives --install ${base_sbindir}/halt halt halt.${PN} 200
update-alternatives --install ${base_sbindir}/reboot reboot reboot.${PN} 200
update-alternatives --install ${base_sbindir}/poweroff poweroff poweroff.${PN} 200
+update-alternatives --install ${base_sbindir}/shutdown shutdown shutdown.${PN} 200
}
pkg_postinst_sysvinit-utils () {
@@ -119,13 +120,13 @@ pkg_postinst_sysvinit-utils () {
update-alternatives --install ${bindir}/last last last.${PN} 200
update-alternatives --install ${bindir}/mesg mesg mesg.${PN} 200
update-alternatives --install ${bindir}/wall wall wall.${PN} 200
-update-alternatives --install ${base_sbindir}/shutdown shutdown shutdown.${PN} 200
}
pkg_prerm_${PN} () {
#!/bin/sh
update-alternatives --remove halt halt.${PN}
update-alternatives --remove reboot reboot.${PN}
+update-alternatives --remove shutdown shutdown.${PN}
}
pkg_prerm_sysvinit-utils () {
@@ -133,7 +134,6 @@ pkg_prerm_sysvinit-utils () {
update-alternatives --remove last last.${PN}
update-alternatives --remove mesg mesg.${PN}
update-alternatives --remove wall wall.${PN}
-update-alternatives --remove shutdown shutdown.${PN}
}
pkg_postinst_sysvinit-pidof () {