mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
scripts/image: prefix OpenELEC own variables with OPENELEC_ in /etc/os-release
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
d558d993cf
commit
22404bc775
@ -88,12 +88,6 @@ 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
|
||||
@ -102,7 +96,12 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
|
||||
if [ -n "$GIT_HASH" ]; then
|
||||
echo -e "BUILD_ID=\"$GIT_HASH\"" >> $INSTALL/etc/os-release
|
||||
fi
|
||||
|
||||
echo -e "OPENELEC_ARCH=\"$PROJECT.$TARGET_ARCH\"" >> $INSTALL/etc/os-release
|
||||
if [ "$OFFICIAL" = "yes" ]; then
|
||||
echo -e "OPENELEC_BUILD=\"official\"" >> $INSTALL/etc/os-release
|
||||
else
|
||||
echo -e "OPENELEC_BUILD=\"unofficial\"" >> $INSTALL/etc/os-release
|
||||
fi
|
||||
|
||||
if [ "$OFFICIAL" = "yes" ]; then
|
||||
echo "official" > $INSTALL/etc/build
|
||||
|
Loading…
x
Reference in New Issue
Block a user