We need to read DISTRIBUTION_STATUS in order to have information about (#3815)

* We need to read DISTRIBUTION_STATUS in order to have information about

* Cover variants if we generate images for wip / csc targets

- by mistake
- for promotion or other reasons
- if image is made by 3rd party to cover this case

* Update armbian-firstlogin
This commit is contained in:
Igor Pečovnik
2022-05-25 18:35:50 +02:00
committed by GitHub
parent 4145e3fb29
commit 8d75c0b026

View File

@@ -6,6 +6,10 @@
# License version 2. This program is licensed "as is" without any
# warranty of any kind, whether express or implied.
# read distribution status
[[ -f /etc/lsb-release ]] && . /etc/lsb-release
[[ -n "$DISTRIB_CODENAME" && -f /etc/armbian-distribution-status ]] && DISTRIBUTION_STATUS=$(cat /etc/armbian-distribution-status | grep "$DISTRIB_CODENAME" | cut -d"=" -f2)
. /etc/armbian-release
@@ -352,6 +356,8 @@ if [[ -f /root/.not_logged_in_yet && -n $(tty) ]]; then
echo -e "\nSupport status: \e[0;31mno support\x1B[0m (edge kernel branch)"
elif [[ "$DISTRIBUTION_STATUS" != "supported" ]]; then
echo -e "\nSupport status: \e[0;31mno support\x1B[0m (unsupported userspace)"
elif [[ "$BOARD_TYPE" != "supported" ]]; then
echo -e "\nSupport status: \e[0;31mcommunity support\x1B[0m (looking for a dedicated maintainer)"
fi
else