os: Initial support for Bedrock Linux
This commit is contained in:
parent
679aa306fb
commit
e155df7a72
1 changed files with 30 additions and 1 deletions
31
neofetch
31
neofetch
|
@ -829,7 +829,12 @@ get_distro() {
|
||||||
|
|
||||||
case "$os" in
|
case "$os" in
|
||||||
"Linux" | "BSD" | "MINIX")
|
"Linux" | "BSD" | "MINIX")
|
||||||
if [[ -f "/etc/redstar-release" ]]; then
|
if [[ -f "/bedrock/etc/bedrock-release" ]] && [[ $PATH == */bedrock/cross/* ]]; then
|
||||||
|
case "$distro_shorthand" in
|
||||||
|
"on" | "tiny") distro="Bedrock Linux" ;;
|
||||||
|
*) distro="$(< /bedrock/etc/bedrock-release)"
|
||||||
|
esac
|
||||||
|
elif [[ -f "/etc/redstar-release" ]]; then
|
||||||
case "$distro_shorthand" in
|
case "$distro_shorthand" in
|
||||||
"on" | "tiny") distro="Red Star OS" ;;
|
"on" | "tiny") distro="Red Star OS" ;;
|
||||||
*) distro="Red Star OS $(awk -F'[^0-9*]' '$0=$2' /etc/redstar-release)"
|
*) distro="Red Star OS $(awk -F'[^0-9*]' '$0=$2' /etc/redstar-release)"
|
||||||
|
@ -3431,6 +3436,7 @@ get_ascii() {
|
||||||
|
|
||||||
# Calculate size of ascii file in line length / line count.
|
# Calculate size of ascii file in line length / line count.
|
||||||
while IFS=$'\n' read -r line; do
|
while IFS=$'\n' read -r line; do
|
||||||
|
line="${line//\\\\/\\}"
|
||||||
((++lines,${#line}>ascii_len)) && ascii_len="${#line}"
|
((++lines,${#line}>ascii_len)) && ascii_len="${#line}"
|
||||||
done <<< "${ascii_data//\$\{??\}}"
|
done <<< "${ascii_data//\$\{??\}}"
|
||||||
|
|
||||||
|
@ -5232,6 +5238,29 @@ ${c1}:syyyyyy/ :yyyyyy/${c2}-yyo.:syyyyyyyyyyy
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"Bedrock"*)
|
||||||
|
set_colors 0 7
|
||||||
|
read -rd '' ascii_data <<'EOF'
|
||||||
|
${c1}--------------------------------------
|
||||||
|
--------------------------------------
|
||||||
|
--------------------------------------
|
||||||
|
---${c2}\\\\\\\\\\\\\\\\\\\\\\\\${c1}-----------------------
|
||||||
|
----${c2}\\\\\\ \\\\\\${c1}----------------------
|
||||||
|
-----${c2}\\\\\\ \\\\\\${c1}---------------------
|
||||||
|
------${c2}\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\${c1}------
|
||||||
|
-------${c2}\\\\\\ \\\\\\${c1}-----
|
||||||
|
--------${c2}\\\\\\ \\\\\\${c1}----
|
||||||
|
---------${c2}\\\\\\ ______ \\\\\\${c1}---
|
||||||
|
----------${c2}\\\\\\ ///${c1}---
|
||||||
|
-----------${c2}\\\\\\ ///${c1}----
|
||||||
|
------------${c2}\\\\\\ ///${c1}-----
|
||||||
|
-------------${c2}\\\\\\////////////////${c1}------
|
||||||
|
--------------------------------------
|
||||||
|
--------------------------------------
|
||||||
|
--------------------------------------
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
|
||||||
"Bitrig"*)
|
"Bitrig"*)
|
||||||
set_colors 2 7
|
set_colors 2 7
|
||||||
read -rd '' ascii_data <<'EOF'
|
read -rd '' ascii_data <<'EOF'
|
||||||
|
|
Loading…
Reference in a new issue