OS: Add support for Cucumber Linux

This commit is contained in:
Michael Straube 2019-10-15 18:00:24 +02:00
parent e0ea7fe996
commit c16af3a3fd
1 changed files with 32 additions and 2 deletions

View File

@ -879,8 +879,12 @@ get_distro() {
elif [[ -f "/etc/os-release" || \ elif [[ -f "/etc/os-release" || \
-f "/usr/lib/os-release" || \ -f "/usr/lib/os-release" || \
-f "/etc/openwrt_release" ]]; then -f "/etc/openwrt_release" || \
files=("/etc/os-release" "/usr/lib/os-release" "/etc/openwrt_release") -f "/etc/lsb-release" ]]; then
files=("/etc/os-release"
"/usr/lib/os-release"
"/etc/openwrt_release"
"/etc/lsb-release")
# Source the os-release file # Source the os-release file
for file in "${files[@]}"; do for file in "${files[@]}"; do
@ -5953,6 +5957,32 @@ ${c2} lodd${c1}dolccc${c2}ccox${c1}xoloo
EOF EOF
;; ;;
*"Cucumber"*)
set_colors 2 3
read -rd '' ascii_data <<'EOF'
${c1} `.-://++++++//:-.`
`:/+//${c2}::--------${c1}:://+/:`
-++/:${c2}----..........----${c1}:/++-
.++:${c2}---...........-......---${c1}:++.
/+:${c2}---....-::/:/--//:::-....---${c1}:+/
`++:${c2}--.....:---::/--/::---:.....--${c1}:++`
/+:${c2}--.....--.--::::-/::--.--.....--${c1}:+/
-o:${c2}--.......-:::://--/:::::-.......--${c1}:o-
/+:${c2}--...-:-::---:::..:::---:--:-...--${c1}:+/
o/:${c2}-...-:.:.-/:::......::/:.--.:-...-${c1}:/o
o/${c2}--...::-:/::/:-......-::::::-/-...-${c1}:/o
/+:${c2}--..-/:/:::--:::..:::--::////-..--${c1}:+/
-o:${c2}--...----::/:::/--/:::::-----...--${c1}:o-
/+:${c2}--....://:::.:/--/:.::://:....--${c1}:+/
`++:${c2}--...-:::.--.:..:.--.:/:-...--${c1}:++`
/+:${c2}---....----:-..-:----....---${c1}:+/
.++:${c2}---..................---${c1}:++.
-/+/:${c2}----..........----${c1}:/+/-
`:/+//${c2}::--------:::${c1}/+/:`
`.-://++++++//:-.`
EOF
;;
"debian_small") "debian_small")
set_colors 1 7 3 set_colors 1 7 3
read -rd '' ascii_data <<'EOF' read -rd '' ascii_data <<'EOF'