Revert "Revert "newlines""

This reverts commit e95c8ebe5f.
This commit is contained in:
oshaboy 2022-03-13 01:48:10 +02:00
parent e95c8ebe5f
commit 54300031f9

View file

@ -998,16 +998,19 @@ get_distro() {
on|tiny) distro="OS Elbrus" ;;
*) distro="OS Elbrus $(< /etc/mcst_version)"
esac
elif [[ -f /etc/linspire-version ]]; then
case $distro_shorthand in
on|tiny) distro="Linspire" ;;
*) distro="Linspire $(awk '/Version/ {print $2}' /etc/linspire-version)"
esac
elif [[ -f /etc/lindowsos-version ]]; then
case $distro_shorthand in
on|tiny) distro="LindowsOS" ;;
*) distro="$(awk '/Version/ {print $2,$3}' /etc/lindowsos-version)"
esac
elif type -p pveversion >/dev/null; then
case $distro_shorthand in
on|tiny) distro="Proxmox VE" ;;