mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Keep the VENDOR in motd after the update
This commit is contained in:
@@ -108,7 +108,6 @@ function compile_armbian-bsp-cli() {
|
||||
VENDORURL="$VENDORURL"
|
||||
VENDORSUPPORT="$VENDORSUPPORT"
|
||||
VENDORBUGS="$VENDORBUGS"
|
||||
|
||||
EOF
|
||||
|
||||
# copy general overlay from packages/bsp-cli
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user