stx-config-files: change the login banner to show oran release 33/3933/1
authorJackie Huang <jackie.huang@windriver.com>
Mon, 1 Jun 2020 08:24:06 +0000 (16:24 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Mon, 1 Jun 2020 10:14:52 +0000 (18:14 +0800)
Change the login banner to show oran release instead of
starlingx's platfrom release:

19.12 -> Bronze (2.0)

Issue-ID: INF-145
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I190d2cbf21a3448d8b7915a01deb0555b9a8681b

meta-stx/conf/distro/poky-stx.conf
meta-stx/recipes-core/stx-config-files/config-files_1.0.0.bb

index 869866a..1d569ab 100644 (file)
@@ -89,6 +89,7 @@ HELM_TOOL_KIT_VERSION = "0.1.0"
 TIS_PATCH_VER = "7"
 HELM_REPO = "stx-platform"
 STX_REL = "19.12"
+ORAN_REL = "Bronze (2.0)"
 
 # For the stx /etc/build.info
 STX_ID = "3.0"
index 7f3e778..2002e2d 100644 (file)
@@ -251,8 +251,8 @@ pkg_postinst_ontarget_audit-config() {
 }
 
 pkg_postinst_centos-release-config() {
-        sed 's/@PLATFORM_RELEASE@/${STX_REL}/' $D${datadir}/starlingx/config-files/centos-release-config/files/issue >> $D${sysconfdir}/issue
-        sed 's/@PLATFORM_RELEASE@/${STX_REL}/' $D${datadir}/starlingx/config-files/centos-release-config/files/issue.net >> $D${sysconfdir}/issue.net
+        sed 's/@PLATFORM_RELEASE@/${ORAN_REL}/' $D${datadir}/starlingx/config-files/centos-release-config/files/issue >> $D${sysconfdir}/issue
+        sed 's/@PLATFORM_RELEASE@/${ORAN_REL}/' $D${datadir}/starlingx/config-files/centos-release-config/files/issue.net >> $D${sysconfdir}/issue.net
         chmod 644 $D${sysconfdir}/issue
         chmod 644 $D${sysconfdir}/issue.net
 }