Patchwork [03/10] mingetty: use u-a to provide /sbin/getty (also provided by util-linux-agetty and tinylogin)

login
register
mail settings
Submitter Martin Jansa
Date Nov. 29, 2011, 7 a.m.
Message ID <0a551c0551391cf10a1b12d53d9223e3dc0fc4d1.1322549636.git.Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/15507/
State Accepted
Commit ad0d9fb794497fc747a1ad4c82cae44a47143932
Headers show

Comments

Martin Jansa - Nov. 29, 2011, 7 a.m.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-extended/mingetty/mingetty_1.08.bb |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-extended/mingetty/mingetty_1.08.bb b/meta/recipes-extended/mingetty/mingetty_1.08.bb
index ce4b3d4..fed5dfd 100644
--- a/meta/recipes-extended/mingetty/mingetty_1.08.bb
+++ b/meta/recipes-extended/mingetty/mingetty_1.08.bb
@@ -2,7 +2,7 @@  DESCRIPTION = " A compact getty program for virtual consoles only"
 SECTION = "console/utils"
 HOMEPAGE = "http://sourceforge.net/projects/mingetty/"
 LICENSE = "GPLv2"
-PR = "r0"
+PR = "r1"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=0c56db0143f4f80c369ee3af7425af6e"
 SRC_URI = "http://cdnetworks-kr-1.dl.sourceforge.net/project/mingetty/mingetty/${PV}/mingetty-${PV}.tar.gz"
@@ -17,3 +17,10 @@  do_install(){
     mkdir -p ${D}/sbin
     oe_runmake install DESTDIR=${D}
 }
+
+inherit update-alternatives
+
+ALTERNATIVE_NAME = "getty"
+ALTERNATIVE_LINK = "${base_sbindir}/getty"
+ALTERNATIVE_PATH = "${base_sbindir}/mingetty"
+ALTERNATIVE_PRIORITY = "50"