diff --git a/config/functions b/config/functions index dcc6f3ebfa..70a4547898 100644 --- a/config/functions +++ b/config/functions @@ -233,7 +233,7 @@ dashes="===========================" show_config() { dashes="===========================" config_message="$config_message\n $dashes$dashes$dashes" - config_message="$config_message\n Configuration for $DISTRONAME" + config_message="$config_message\n Configuration for $DISTRONAME ($([ "$OFFICIAL" = "yes" ] && echo "official" || echo "unofficial"))" config_message="$config_message\n $dashes$dashes$dashes" # Build options diff --git a/scripts/image b/scripts/image index dd46401e7a..02f7e5b709 100755 --- a/scripts/image +++ b/scripts/image @@ -81,18 +81,24 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION" echo "$PROJECT.$TARGET_ARCH" > $INSTALL/etc/arch echo "$OPENELEC_VERSION" > $INSTALL/etc/version echo "$TARGET_VERSION" > $INSTALL/etc/release - echo "$DISTRONAME - Version: $OPENELEC_VERSION" > $INSTALL/etc/openelec-release + echo "$DISTRONAME ($([ "$OFFICIAL" = "yes" ] && echo "official" || echo "unofficial")) - Version: $OPENELEC_VERSION" > $INSTALL/etc/openelec-release if [ -n "$GIT_HASH" ]; then echo "$GIT_HASH" >> $INSTALL/etc/gitrev fi + if [ "$OFFICIAL" = "yes" ]; then + echo "official" > $INSTALL/etc/build + else + echo "unofficial" > $INSTALL/etc/build + fi + # create /etc/issue echo $GREETING0 > $INSTALL/etc/issue echo $GREETING1 >> $INSTALL/etc/issue echo $GREETING2 >> $INSTALL/etc/issue echo $GREETING3 >> $INSTALL/etc/issue echo $GREETING4 >> $INSTALL/etc/issue - echo "$DISTRONAME Version: $OPENELEC_VERSION" >> $INSTALL/etc/issue + echo "$DISTRONAME ($([ "$OFFICIAL" = "yes" ] && echo "official" || echo "unofficial")) Version: $OPENELEC_VERSION" >> $INSTALL/etc/issue if [ -n "$GIT_HASH" ]; then echo "$DISTRONAME git: $GIT_HASH" >> $INSTALL/etc/issue fi