Fix MOTD in debian-based armbian
Read DISTRIBUTION_CODENAME for MOTD from os-release instead of lsb-release
This commit is contained in:
parent
28d5c93bb4
commit
2791b57b90
@ -14,7 +14,7 @@ MOTD_DISABLE=""
|
||||
|
||||
[[ -f /etc/armbian-release ]] && . /etc/armbian-release
|
||||
[[ -f /etc/armbian-distribution-status ]] && . /etc/armbian-distribution-status
|
||||
[[ -f /etc/lsb-release && -f /etc/armbian-distribution-status ]] && DISTRIBUTION_CODENAME=$(cat /etc/lsb-release | grep CODENAME | cut -d"=" -f2) && DISTRIBUTION_STATUS=$(cat /etc/armbian-distribution-status | grep $DISTRIBUTION_CODENAME | cut -d"=" -f2)
|
||||
[[ -f /etc/os-release && -f /etc/armbian-distribution-status ]] && DISTRIBUTION_CODENAME=$(cat /etc/os-release | grep VERSION_CODENAME | cut -d"=" -f2) && DISTRIBUTION_STATUS=$(cat /etc/armbian-distribution-status | grep $DISTRIBUTION_CODENAME | cut -d"=" -f2)
|
||||
[[ -f /etc/default/armbian-motd ]] && . /etc/default/armbian-motd
|
||||
|
||||
for f in $MOTD_DISABLE; do
|
||||
|
||||
Loading…
Reference in New Issue
Block a user