Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add Virtuozzo Linux Logo #1971

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,9 @@ get_distro() {
# by the shell since the values aren't quoted.
elif [[ -f /etc/lsb-release && $(< /etc/lsb-release) == *CHROMEOS* ]]; then
distro='Chrome OS'

elif [[ -f /etc/vzlinux-release ]]; then
distro='VzLinux'
Comment on lines +1071 to +1073
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if this code is removed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# cat /etc/os-release 
NAME="Virtuozzo Linux"

in os-release it's show Virtuozzo Linux instead of VzLinux

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is os-release not updated to reflect the distribution's actual name?


elif type -p guix >/dev/null; then
case $distro_shorthand in
Expand Down Expand Up @@ -11435,6 +11438,33 @@ ${c3}#######${c2}#${c1}#####${c2}#${c3}#######
${c3} #####${c2}#######${c3}#####
EOF
;;

"VzLinux"*)
set_colors 1 7 3
read -rd '' ascii_data <<'EOF'
Comment on lines +11442 to +11444

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be added here, it should be added after VNux. This part of the script is for kernel name detection when distro name detection fails.

${c2} ${c1}.::::::::.${c2}
`/////` ${c1}:zzzzzzzz${c2} ://///-
VVVVVu` ${c1}-zzz`${c2} /VVVVV.
`dVVVVV ${c1}.zzz`${c2} :VVVVV:
`VVVVVo ${c1}zzz${c2} -VVVVV/
.VVVVV\ ${c1}zzz/${c2} .VVVVV+
-VVVVV: ${c1}zzzzzzzzz${c2} .dVVVVs
\VVVVV- ${c1}`````````${c2} VVVVVV
+VVVVV. sVVVVu`
oVVVVd` +VVVVd`
VVVVVV /VVVVV.
`uVVVVs -VVVVV-
`dVVVV+ .VVVVV/
.VVVVV\ `dVVVV+
-VVVVV-`uVVVVo
:VVVVVVVVVVV
\VVVVVVVVu
oVVVVVVd`
sVVVVV.
----.
EOF
;;

"Profelis SambaBOX"* | "SambaBOX"*)
set_colors 3 6
read -rd '' ascii_data <<'EOF'
Expand Down