diff options
author | Rob Bradford <rob@linux.intel.com> | 2008-10-29 18:21:50 +0000 |
---|---|---|
committer | Rob Bradford <rob@linux.intel.com> | 2008-10-29 18:22:42 +0000 |
commit | 8cafc7c2cb2a5a3aa52ea04ba524fb1f07d6f17a (patch) | |
tree | b7f5ff89b264bb388c00bcb00ca316ed5a9fc185 /meta/packages | |
parent | 6c298cebbd728b93e94be0087b3a3fdc12d02d65 (diff) | |
download | openembedded-core-8cafc7c2cb2a5a3aa52ea04ba524fb1f07d6f17a.tar.gz openembedded-core-8cafc7c2cb2a5a3aa52ea04ba524fb1f07d6f17a.tar.bz2 openembedded-core-8cafc7c2cb2a5a3aa52ea04ba524fb1f07d6f17a.tar.xz openembedded-core-8cafc7c2cb2a5a3aa52ea04ba524fb1f07d6f17a.zip |
sysvinit: Manage /sbin/poweroff with update-alternatives
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/sysvinit/sysvinit_2.86.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/packages/sysvinit/sysvinit_2.86.bb b/meta/packages/sysvinit/sysvinit_2.86.bb index 407ffd336..5807af344 100644 --- a/meta/packages/sysvinit/sysvinit_2.86.bb +++ b/meta/packages/sysvinit/sysvinit_2.86.bb @@ -2,7 +2,7 @@ DESCRIPTION = "System-V like init." SECTION = "base" LICENSE = "GPL" HOMEPAGE = "http://freshmeat.net/projects/sysvinit/" -PR = "r31" +PR = "r32" # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf. # Set PACKAGE_ARCH appropriately. @@ -97,6 +97,7 @@ EOF mv ${D}${base_sbindir}/halt ${D}${base_sbindir}/halt.${PN} mv ${D}${base_sbindir}/reboot ${D}${base_sbindir}/reboot.${PN} mv ${D}${base_sbindir}/shutdown ${D}${base_sbindir}/shutdown.${PN} + mv ${D}${base_sbindir}/poweroff ${D}${base_sbindir}/poweroff.${PN} mv ${D}${bindir}/last ${D}${bindir}/last.${PN} mv ${D}${bindir}/mesg ${D}${bindir}/mesg.${PN} mv ${D}${bindir}/wall ${D}${bindir}/wall.${PN} @@ -106,6 +107,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}/shutdown shutdown shutdown.${PN} 200 + update-alternatives --install ${base_sbindir}/poweroff poweroff poweroff.${PN} 200 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 @@ -115,6 +117,7 @@ pkg_prerm_${PN} () { update-alternatives --remove halt halt.${PN} update-alternatives --remove reboot reboot.${PN} update-alternatives --remove shutdown shutdown.${PN} + update-alternatives --remove poweroff poweroff.${PN} update-alternatives --remove last last.${PN} update-alternatives --remove mesg mesg.${PN} update-alternatives --remove wall wall.${PN} |