Skip to content

Commit 4231216

Browse files
authored
fix: remove enduser support msg from zero2 images (#209)
1 parent df2aa35 commit 4231216

File tree

1 file changed

+0
-21
lines changed
  • src/modules/orangepi/filesystem/root/etc/update-motd.d

1 file changed

+0
-21
lines changed

src/modules/orangepi/filesystem/root/etc/update-motd.d/10-mainsailos

-21
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ if [[ -f /etc/orangepi-distribution-status ]]; then
2323
[[ -f /etc/lsb-release ]] && DISTRIBUTION_CODENAME=$(grep CODENAME /etc/lsb-release | cut -d"=" -f2)
2424
[[ -z "${DISTRIBUTION_CODENAME}" && -f /etc/os-release ]] && DISTRIBUTION_CODENAME=$(grep VERSION_CODENAME /etc/os-release | cut -d"=" -f2)
2525
[[ -z "${DISTRIBUTION_CODENAME}" && -x /usr/bin/lsb_release ]] && DISTRIBUTION_CODENAME=$(/usr/bin/lsb_release -c | cut -d":" -f2 | tr -d "\t")
26-
DISTRIBUTION_STATUS=$(grep "${DISTRIBUTION_CODENAME}" /etc/orangepi-distribution-status | cut -d"=" -f2)
2726
fi
2827
[[ -f /etc/default/orangepi-motd ]] && . /etc/default/orangepi-motd
2928

@@ -44,23 +43,3 @@ echo -e "Version $(cut -d ' ' -f3 /etc/mainsailos-release), based on \
4443
\e[34mOrange Pi OS ${VERSION} ${DISTRIBUTION_CODENAME^}\e[0m $([[ ${BRANCH} == edge ]])"
4544
echo -e "Running on \e[34m$(echo "${BOARD_NAME}" | sed 's/Orange Pi/OPi/' | \
4645
sed 's/NanoPi/NPi/' | sed 's/Banana Pi/BPi/')\e[0m with \e[34mLinux ${KERNELID}\e[0m\n"
47-
48-
# displaying status warnings
49-
50-
if [[ "${IMAGE_TYPE}" != "stable" ]]; then
51-
[[ "${IMAGE_TYPE}" == "user-built" ]] && UNSUPPORTED_TEXT="built from trunk"
52-
[[ "${IMAGE_TYPE}" == "nightly" ]] && UNSUPPORTED_TEXT="untested automated build"
53-
else
54-
[[ "${BOARD_TYPE}" == "csc" || "${BOARD_TYPE}" == "tvb" ]] && UNSUPPORTED_TEXT="community creations"
55-
[[ "${BOARD_TYPE}" == "wip" ]] && UNSUPPORTED_TEXT="work in progress"
56-
[[ "${BOARD_TYPE}" == "eos" ]] && UNSUPPORTED_TEXT="end of life"
57-
fi
58-
59-
if [[ -n ${DISTRIBUTION_STATUS} && ${DISTRIBUTION_STATUS} != supported ]]; then
60-
[[ -n ${UNSUPPORTED_TEXT} ]] && UNSUPPORTED_TEXT+=" & "
61-
UNSUPPORTED_TEXT+="unsupported (${DISTRIBUTION_CODENAME}) userspace!"
62-
fi
63-
64-
if [[ -n ${UNSUPPORTED_TEXT} ]]; then
65-
echo -e "\e[0;91mNo end-user support: \x1B[0m${UNSUPPORTED_TEXT}\n"
66-
fi

0 commit comments

Comments
 (0)