Patchwork [01/10] tinylogin: use u-a for getty so we can provide /sbin/getty from util-linux-agetty too

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

Comments

Martin Jansa - Nov. 29, 2011, 7 a.m.
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-core/tinylogin/tinylogin_1.4.bb |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-core/tinylogin/tinylogin_1.4.bb b/meta/recipes-core/tinylogin/tinylogin_1.4.bb
index bad918c..478f69b 100644
--- a/meta/recipes-core/tinylogin/tinylogin_1.4.bb
+++ b/meta/recipes-core/tinylogin/tinylogin_1.4.bb
@@ -7,7 +7,9 @@  and groups on an embedded system."
 HOMEPAGE = "http://tinylogin.busybox.net/"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM="file://LICENSE;md5=f1060fa3a366f098b5b1d8c2077ba269"
-PR = "r7"
+PR = "r8"
+
+inherit update-alternatives
 
 SRC_URI = "http://www.angstrom-distribution.org/unstable/sources/tinylogin-${PV}.tar.bz2 \
 	file://cvs-20040608.patch \
@@ -35,3 +37,12 @@  do_install () {
 		ln -sf /bin/tinylogin ${D}$i
 	done
 }
+
+do_install_append () {
+        mv ${D}${base_sbindir}/getty ${D}${base_sbindir}/getty.${PN}
+}
+
+ALTERNATIVE_NAME = "getty"
+ALTERNATIVE_LINK = "${base_sbindir}/getty"
+ALTERNATIVE_PATH = "${base_sbindir}/getty.${PN}"
+ALTERNATIVE_PRIORITY = "80"