Kaynağa Gözat

neofetch: Added initial support for HardenedBSD. Closes #1050

Dylan Araps 5 yıl önce
ebeveyn
işleme
13f2d3a173
1 değiştirilmiş dosya ile 5 ekleme ve 4 silme
  1. 5 4
      neofetch

+ 5 - 4
neofetch

@@ -957,9 +957,10 @@ get_distro() {
                     distro=${distro/DragonFly/DragonFlyBSD}
                     distro=${distro/DragonFly/DragonFlyBSD}
 
 
                     # Workarounds for some BSD based distros.
                     # Workarounds for some BSD based distros.
-                    [[ -f /etc/pcbsd-lang ]]     && distro=PCBSD
-                    [[ -f /etc/trueos-lang ]]    && distro=TrueOS
-                    [[ -f /etc/pacbsd-release ]] && distro=PacBSD
+                    [[ -f /etc/pcbsd-lang ]]       && distro=PCBSD
+                    [[ -f /etc/trueos-lang ]]      && distro=TrueOS
+                    [[ -f /etc/pacbsd-release ]]   && distro=PacBSD
+                    [[ -f /etc/hbsd-update.conf ]] && distro=HardenedBSD
                 fi
                 fi
             fi
             fi
 
 
@@ -6419,7 +6420,7 @@ ${c1}/\\,-'''''-,/\\
 EOF
 EOF
         ;;
         ;;
 
 
-        "FreeBSD"*)
+        "FreeBSD"*|HardenedBSD*)
             set_colors 1 7 3
             set_colors 1 7 3
             read -rd '' ascii_data <<'EOF'
             read -rd '' ascii_data <<'EOF'
    ${c2}```                        ${c1}`
    ${c2}```                        ${c1}`