powertop: fix update-alternatives link

In the new stable busybox_1.21.1 default location of symbolic link for
powertop has been changed: /usr/sbin instead of /bin. This update breaks
creation of alternative links when both busybox and powertop packages are
installed on the system.

Fix: modification of ALTERNATIVE_LINK_NAME in powertop recipe.

(From OE-Core rev: d49cbc1e1aa65d759a5dcb0ab20b6fd5b233183b)

Signed-off-by: Sergey Matyukevich <sergey_matyukevich@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Sergey Matyukevich 2013-07-09 17:47:22 +04:00 committed by Richard Purdie
parent c1b0faefa5
commit 01d9d1bd6c
1 changed files with 1 additions and 1 deletions

View File

@ -26,5 +26,5 @@ do_configure_prepend() {
inherit update-alternatives
ALTERNATIVE_${PN} = "powertop"
ALTERNATIVE_TARGET[powertop] = "${sbindir}/powertop"
ALTERNATIVE_LINK_NAME[powertop] = "${base_bindir}/powertop"
ALTERNATIVE_LINK_NAME[powertop] = "${sbindir}/powertop"
ALTERNATIVE_PRIORITY = "100"