Merge pull request #1333 from arisinfenix/cucumber

OS: Add support for Cucumber Linux
This commit is contained in:
dylan 2019-10-15 18:49:33 +00:00 committed by GitHub
commit 6f85392d7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 2 deletions

View File

@ -879,8 +879,12 @@ get_distro() {
elif [[ -f "/etc/os-release" || \
-f "/usr/lib/os-release" || \
-f "/etc/openwrt_release" ]]; then
files=("/etc/os-release" "/usr/lib/os-release" "/etc/openwrt_release")
-f "/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
for file in "${files[@]}"; do
@ -5976,6 +5980,32 @@ ${c2} lodd${c1}dolccc${c2}ccox${c1}xoloo
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")
set_colors 1 7 3
read -rd '' ascii_data <<'EOF'