mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
scripts/image: add ARCH= and BUILD= to /etc/os-release
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user