mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-02-18 23:27:42 +00:00
provide a /etc/os-release file (see http://0pointer.de/blog/projects/os-release)
This commit is contained in:
parent
98b9b0a958
commit
3e1f867169
@ -84,6 +84,18 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
|
||||
if [ -n "$GIT_HASH" ]; then
|
||||
echo "$GIT_HASH" >> $INSTALL/etc/gitrev
|
||||
fi
|
||||
|
||||
# create /etc/os-release
|
||||
echo -e "ID=openelec\n" > $INSTALL/etc/os-release
|
||||
echo -e "NAME=$DISTRONAME\n" >> $INSTALL/etc/os-release
|
||||
echo -e "VERSION=$OPENELEC_VERSION\n" >> $INSTALL/etc/os-release
|
||||
echo -e "PRETTY_NAME=$DISTRONAME ($([ "$OFFICIAL" = "yes" ] && echo "official" || echo "unofficial")) - Version: $OPENELEC_VERSION\n" >> $INSTALL/etc/os-release
|
||||
echo -e "HOME_URL=http://www.openelec.tv\n" >> $INSTALL/etc/os-release
|
||||
echo -e "BUG_REPORT_URL=https://github.com/OpenELEC/OpenELEC.tv\n" >> $INSTALL/etc/os-release
|
||||
if [ -n "$GIT_HASH" ]; then
|
||||
echo -e "BUILD_ID=$GIT_HASH\n" >> $INSTALL/etc/os-release
|
||||
fi
|
||||
|
||||
|
||||
if [ "$OFFICIAL" = "yes" ]; then
|
||||
echo "official" > $INSTALL/etc/build
|
||||
|
Loading…
x
Reference in New Issue
Block a user