From d558d993cfb3d52fbbaf00b3e8764a95fbc345cd Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 22 Oct 2014 12:04:36 +0200 Subject: [PATCH] scripts/image: add ARCH= and BUILD= to /etc/os-release Signed-off-by: Stephan Raue --- scripts/image | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/image b/scripts/image index 5b2b57db82..44eb24c77f 100755 --- a/scripts/image +++ b/scripts/image @@ -88,6 +88,12 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION" # create /etc/os-release echo -e "NAME=\"$DISTRONAME\"" > $INSTALL/etc/os-release echo -e "VERSION=\"$OPENELEC_VERSION\"" >> $INSTALL/etc/os-release + echo -e "ARCH=\"$PROJECT.$TARGET_ARCH\"" >> $INSTALL/etc/os-release + if [ "$OFFICIAL" = "yes" ]; then + echo -e "BUILD=\"official\"" >> $INSTALL/etc/os-release + else + echo -e "BUILD=\"unofficial\"" >> $INSTALL/etc/os-release + fi echo -e "ID=\"openelec\"" >> $INSTALL/etc/os-release echo -e "VERSION_ID=\"$OS_VERSION\"" >> $INSTALL/etc/os-release echo -e "PRETTY_NAME=\"$DISTRONAME ($([ "$OFFICIAL" = "yes" ] && echo "official" || echo "unofficial")) - Version: $OPENELEC_VERSION\"" >> $INSTALL/etc/os-release