[oe-commits] Koen Kooi : angstrom-version: also provide /etc/os-release
git version control
git at git.openembedded.org
Fri May 6 07:31:41 UTC 2011
Module: openembedded.git
Branch: org.openembedded.dev
Commit: ed5f4802eafebcca630080520a865838ab8a06d3
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ed5f4802eafebcca630080520a865838ab8a06d3
Author: Koen Kooi <koen at openembedded.org>
Date: Fri May 6 09:11:49 2011 +0200
angstrom-version: also provide /etc/os-release
Signed-off-by: Koen Kooi <koen at openembedded.org>
---
recipes/angstrom/angstrom-version.bb | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/recipes/angstrom/angstrom-version.bb b/recipes/angstrom/angstrom-version.bb
index 0173f16..3b9789c 100644
--- a/recipes/angstrom/angstrom-version.bb
+++ b/recipes/angstrom/angstrom-version.bb
@@ -1,7 +1,7 @@
LICENSE = "MIT"
PV = "${DISTRO_VERSION}"
-PR = "r6"
+PR = "r7"
PE = "1"
SRC_URI = "file://lsb_release"
@@ -15,6 +15,11 @@ do_install() {
echo "Built from branch: ${METADATA_BRANCH}" >> ${D}${sysconfdir}/angstrom-version
echo "Revision: ${METADATA_REVISION}" >> ${D}${sysconfdir}/angstrom-version
echo "Target system: ${TARGET_SYS}" >> ${D}${sysconfdir}/angstrom-version
+
+ echo "NAME=Angstrom" > ${D}${sysconfdir}/os-release
+ echo "ID=angstrom" >> ${D}${sysconfdir}/os-release
+ echo "PRETTY_NAME=The Ångström Distribution" >> ${D}${sysconfdir}/os-release
+ echo "ANSI_COLOR=1;35" >> ${D}${sysconfdir}/os-release
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/lsb_release ${D}${bindir}/
More information about the Openembedded-commits
mailing list