Add ascii art and distro detection

This commit is contained in:
Dylan Araps 2016-08-28 08:59:11 +10:00
parent f7353a6b64
commit 71f0575b2b
2 changed files with 18 additions and 0 deletions

15
ascii/distro/android Normal file
View File

@ -0,0 +1,15 @@
"\
${c1} ╲ ▁▂▂▂▁
▄███████▄
▄██${c2} ${c1}███${c2} ${c1}██▄
▄███████████▄
▄█ ▄▄▄▄▄▄▄▄▄▄▄▄▄ █▄
██ █████████████ ██
██ █████████████ ██
██ █████████████ ██
██ █████████████ ██
█████████████
███████████
██ ██
██ ██
"

View File

@ -124,6 +124,9 @@ getdistro() {
elif type -p crux >/dev/null 2>&1; then
distro="$(crux)"
elif [ -d "/system/app/" ] && [ -d "/system/priv-app" ]; then
distro="Android $(getprop ro.build.version.release)"
else
distro="$(awk -F 'NAME=' '/^NAME=/ {printf $2}' /etc/*ease)"
distro="${distro//\"}"