Added support for BLAG Linux

This commit is contained in:
Dylan 2016-02-13 21:14:50 +11:00
parent 33d0e5886b
commit 96e05f78f8
2 changed files with 26 additions and 2 deletions

19
ascii/distro/blag Normal file
View file

@ -0,0 +1,19 @@
"\
${c1} d
,MK:
xMMMX:
.NMMMMMX;
lMMMMMMMM0clodkO0KXWW:
KMMMMMMMMMMMMMMMMMMX'
.;d0NMMMMMMMMMMMMMMMMMMK.
.;dONMMMMMMMMMMMMMMMMMMMMMMx
'dKMMMMMMMMMMMMMMMMMMMMMMMMl
.:xKWMMMMMMMMMMMMMMMMMMM0.
.:xNMMMMMMMMMMMMMMMMMK.
lMMMMMMMMMMMMMMMMMMK.
,MMMMMMMMWkOXWMMMMMM0
.NMMMMMNd. \`':ldko
OMMMK:
oWk,
;:
"

9
fetch
View file

@ -430,7 +430,10 @@ case "$os" in
distro="CRUX"
else
distro="$(grep -h '^NAME=' /etc/*ease)"
# Workaround for distros that store the value differently.
[ -z "$distro" ] && distro="$(grep -h 'TAILS_PRODUCT_NAME' /etc/*ease)"
[ -z "$distro" ] && distro="$(awk '/BLAG/ {print $1; exit}' /etc/*ease)"
distro=${distro/*NAME\=}
distro=${distro#\"*}
@ -623,7 +626,8 @@ getpackages () {
packages="$(ls -d /var/db/pkg/*/* | wc -l)"
;;
"Fedora"* | "openSUSE"* | "Red Hat"* | "CentOS"* | "Mageia"* | "PCLinuxOS"*)
"Fedora"* | "openSUSE"* | "Red Hat"* | "CentOS"* | "Mageia"* | "PCLinuxOS"* |\
"BLAG"*)
packages="$(rpm -qa | wc -l)"
;;
@ -765,6 +769,7 @@ getcpu () {
cpu="$(grep -F 'model name' /proc/cpuinfo)"
cpu=${cpu/model name*: }
cpu=${cpu/ @*}
cpu=${cpu// }
cpu=${cpu%% }
# Get cpu speed
@ -1630,7 +1635,7 @@ getascii () {
ascii_distro="mint"
;;
"NetBSD"* | "Parabola"* | "Tails"*)
"NetBSD"* | "Parabola"* | "Tails"* | "BLAG"*)
c1=$(color 5)
c2=$(color 7)
;;