Fix two small cosmetic bug (#4357)
- debian showed not supported due to absence of lsb-release - motd didn't address displaying update aval correct
This commit is contained in:
parent
bd260b20f8
commit
58ed41d385
@ -32,7 +32,7 @@ if [[ $NUM_UPDATES_ONHOLD -gt 0 ]] && grep -q linux /var/cache/apt/archives/upda
|
||||
echo -en "\e[31mKernel and firmware upgrades disabled:\e[0m \e[1marmbian-config\e[0m "
|
||||
fi
|
||||
|
||||
if [[ $NUM_UPDATES -gt 0 ]] || [[ $NUM_UPDATES_ONHOLD -gt 0 ]]; then
|
||||
if [[ $NUM_UPDATES -gt 0 ]] && [[ $NUM_UPDATES_ONHOLD -gt 0 ]]; then
|
||||
echo -e "]"
|
||||
echo -e "Last check: \e[92m$DATE\e[0m"
|
||||
echo
|
||||
|
||||
@ -8,6 +8,8 @@
|
||||
|
||||
# read distribution status
|
||||
[[ -f /etc/lsb-release ]] && . /etc/lsb-release
|
||||
[[ -f /etc/os-release ]] && . /etc/os-release
|
||||
[[ -z "$DISTRIB_CODENAME" ]] && DISTRIB_CODENAME="${VERSION_CODENAME}"
|
||||
[[ -n "$DISTRIB_CODENAME" && -f /etc/armbian-distribution-status ]] && DISTRIBUTION_STATUS=$(grep "$DISTRIB_CODENAME" /etc/armbian-distribution-status | cut -d"=" -f2)
|
||||
|
||||
. /etc/armbian-release
|
||||
|
||||
Loading…
Reference in New Issue
Block a user