Do not show hash in version

This commit is contained in:
Igor
2023-04-06 08:35:44 +02:00
parent 369e69a553
commit d4945e89fc

View File

@@ -13,6 +13,8 @@ THIS_SCRIPT="header"
MOTD_DISABLE=""
[[ -f /etc/armbian-release ]] && . /etc/armbian-release
NOHASH_VERSION=$(echo $VERSION | sed 's/--.*//;/^$/d') # we don't need to show cache hash here
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)
@@ -33,7 +35,7 @@ KERNELID=$(uname -r)
[[ -f /proc/device-tree/model ]] && [[ -n $(tr -d '\000' < /proc/device-tree/model | grep ODROID | grep Plus) ]] && BOARD_NAME+="+"
TERM=linux toilet -f standard -F metal $(echo $BOARD_NAME | sed 's/Orange Pi/OPi/' | sed 's/NanoPi/NPi/' | sed 's/Banana Pi/BPi/')
echo -e "Welcome to \e[0;91mArmbian ${VERSION} ${DISTRIBUTION_CODENAME^}\x1B[0m with $([[ $BRANCH == edge ]] && echo -e "\e[0;91mbleeding\x1B[0m edge " )\e[0;91mLinux $KERNELID\x1B[0m\n"
echo -e "Welcome to \e[0;91mArmbian ${NOHASH_VERSION} ${DISTRIBUTION_CODENAME^}\x1B[0m with $([[ $BRANCH == edge ]] && echo -e "\e[0;91mbleeding\x1B[0m edge " )\e[0;91mLinux $KERNELID\x1B[0m\n"
# displaying status warnings