aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/angstrom
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2011-05-06 09:11:49 +0200
committerKoen Kooi <koen@openembedded.org>2011-05-06 09:29:06 +0200
commited5f4802eafebcca630080520a865838ab8a06d3 (patch)
tree7ec0f54574d0d72a82b1737e967f8c61da1a9fc6 /recipes/angstrom
parent32881acb70c1b6c910cebb6c97a52aec815fb287 (diff)
downloadopenembedded-ed5f4802eafebcca630080520a865838ab8a06d3.tar.gz
angstrom-version: also provide /etc/os-release
Signed-off-by: Koen Kooi <koen@openembedded.org>
Diffstat (limited to 'recipes/angstrom')
-rw-r--r--recipes/angstrom/angstrom-version.bb7
1 files changed, 6 insertions, 1 deletions
diff --git a/recipes/angstrom/angstrom-version.bb b/recipes/angstrom/angstrom-version.bb
index 0173f166f2..3b9789c77f 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}/