Keep the VENDOR in motd after the update

This commit is contained in:
Igor Pecovnik
2023-11-16 00:05:46 +01:00
committed by Igor
parent 9ca5435fe3
commit b5d5accd77
2 changed files with 9 additions and 1 deletions

View File

@@ -108,7 +108,6 @@ function compile_armbian-bsp-cli() {
VENDORURL="$VENDORURL"
VENDORSUPPORT="$VENDORSUPPORT"
VENDORBUGS="$VENDORBUGS"
EOF
# copy general overlay from packages/bsp-cli

View File

@@ -12,7 +12,16 @@
THIS_SCRIPT="header"
MOTD_DISABLE=""
# Read image configuration
[[ -f /etc/armbian-image-release ]] && . /etc/armbian-image-release
VENDORTEMP="${VENDOR}"
# Read update configuration
[[ -f /etc/armbian-release ]] && . /etc/armbian-release
# Keep the VENDOR from image if its defined there
[[ -n "${VENDORTEMP}" && "${VENDORTEMP}" != "${VENDOR}" ]] && VENDOR="${VENDORTEMP}"
if [[ -f /etc/armbian-distribution-status ]]; then
. /etc/armbian-distribution-status
[[ -f /etc/lsb-release ]] && DISTRIBUTION_CODENAME=$(grep CODENAME /etc/lsb-release | cut -d"=" -f2)