diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-11-10 16:20:49 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-15 11:54:44 +0000 |
commit | c7d8bae47ea80f02af18e67b33e5ac6d1508432a (patch) | |
tree | 5dd0b088812eaa68304f4fc37f5136f4df981d6f | |
parent | 550ac4be8e3ea694d500337c48bbc7bf1c9b041e (diff) | |
download | openembedded-core-c7d8bae47ea80f02af18e67b33e5ac6d1508432a.tar.gz openembedded-core-c7d8bae47ea80f02af18e67b33e5ac6d1508432a.tar.bz2 openembedded-core-c7d8bae47ea80f02af18e67b33e5ac6d1508432a.tar.xz openembedded-core-c7d8bae47ea80f02af18e67b33e5ac6d1508432a.zip |
kbd: use u-a for chvt, deallocvt, fgconssole, openvt, conflicts with busybox
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | meta/recipes-core/kbd/kbd_1.15.2.bb | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/meta/recipes-core/kbd/kbd_1.15.2.bb b/meta/recipes-core/kbd/kbd_1.15.2.bb index 2e0406baa..eea04a075 100644 --- a/meta/recipes-core/kbd/kbd_1.15.2.bb +++ b/meta/recipes-core/kbd/kbd_1.15.2.bb @@ -10,7 +10,7 @@ RREPLACES_${PN} = "console-tools" RPROVIDES_${PN} = "console-tools" RCONFLICTS_${PN} = "console-tools" -PR = "r1" +PR = "r2" SRC_URI="${KERNELORG_MIRROR}/linux/utils/kbd/kbd-1.15.2.tar.bz2" SRC_URI[md5sum] = "e850eb91e4d3b94b194efe8e953204c5" @@ -22,3 +22,30 @@ FILES_${PN}-consolefonts = "${datadir}/consolefonts" FILES_${PN}-consoletrans = "${datadir}/consoletrans" FILES_${PN}-keymaps = "${datadir}/keymaps" FILES_${PN}-unimaps = "${datadir}/unimaps" + +ALTERNATIVE_NAMES_USRBIN = "chvt deallocvt fgconsole openvt" + +do_install_append() { + usrbinprogs_a="${ALTERNATIVE_NAMES_USRBIN}" + for p in $usrbinprogs_a; do + if [ -f "${D}${bindir}/$p" ]; then + mv "${D}${bindir}/$p" "${D}${bindir}/$p.${PN}" + fi + done +} + +pkg_postinst_${PN} () { + usrbinprogs_a="${ALTERNATIVE_NAMES_USRBIN}" + for p in $usrbinprogs_a; do + if [ -f "$D${bindir}/$p" ]; then + update-alternatives --install ${bindir}/$p $p $p.${PN} 100 + fi + done +} + +pkg_postrm_${PN} () { + usrbinprogs_a="${ALTERNATIVE_NAMES_USRBIN}" + for p in $usrbinprogs_a; do + update-alternatives --remove $p $p.${PN} + done +} |