wok-current view screenfetch/stuff/slitaz.patch @ rev 20521

Up fwknop (2.6.10)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 05 18:55:17 2018 +0100 (2018-11-05)
parents
children
line source
1 --- screenfetch-dev.orig 2014-07-09 18:56:48.000000000 +0100
2 +++ screenfetch-dev 2014-07-13 13:17:37.000000000 +0100
3 @@ -207,8 +207,8 @@
4 printf " CrunchBang, Raspbian, elementary OS, Fedora, Frugalware, Fuduntu, Gentoo,\n"
5 printf " Funtoo, Jiyuu Linux, LinuxDeepin, Kali Linux, Mageia, Mandriva, Manjaro,\n"
6 printf " Linux Mint, LMDE, openSUSE, Parabola GNU/Linux-libre, Peppermint,\n"
7 - printf " Red Hat Enterprise Linux, Sabayon, Scientific Linux, Slackware, SolusOS,\n"
8 - printf " TinyCore, Trisquel, Ubuntu and Viperr.\n\n"
9 + printf " Red Hat Enterprise Linux, Sabayon, Scientific Linux, Slackware, SliTaz,\n"
10 + printf " SolusOS, TinyCore, Trisquel, Ubuntu and Viperr.\n\n"
11 printf "${underline}Other Supported Systems${c0}:\n"
12 printf " Mac OS X, FreeBSD, DragonFlyBSD, NetBSD, OpenBSD, Android and Cygwin.\n\n"
13 printf "${underline}Supported Desktop Managers${c0}:\n"
14 @@ -440,6 +440,8 @@
15 distro="Sabayon"
16 elif [[ "${distro_detect}" == "SolusOS" ]]; then
17 distro="SolusOS"
18 + elif [[ "${distro_detect}" == "SliTaz" ]]; then
19 + distro="SliTaz"
20 elif [[ "${distro_detect}" == "Trisquel" ]]; then
21 distro="Trisquel"
22 elif [[ "${distro_detect}" == "Ubuntu" ]]; then
23 @@ -535,6 +537,7 @@
24 elif [ -f /etc/redhat-release ] && grep -q "Red Hat" /etc/redhat-release; then distro="Red Hat Enterprise Linux"
25 elif [ -f /etc/redhat-release ] && grep -q "CentOS" /etc/redhat-release; then distro="CentOS"
26 elif [ -f /etc/slackware-version ]; then distro="Slackware"
27 + elif [ -f /etc/slitaz-release ]; then distro="SliTaz"
28 elif [ -f /usr/share/doc/tc/release.txt ]; then distro="TinyCore"
29 elif [ -f /etc/sabayon-edition ]; then distro="Sabayon"; fi
30 else
31 @@ -645,6 +648,7 @@
32 gentoo) distro="Gentoo" ;;
33 funtoo) distro="Funtoo" ;;
34 slackware) distro="Slackware" ;;
35 + slitaz) distro="SliTaz" ;;
36 frugalware) distro="Frugalware" ;;
37 peppermint) distro="Peppermint" ;;
38 solusos) distro="SolusOS" ;;
39 @@ -729,6 +733,7 @@
40 case $distro in
41 'Arch Linux'|'Parabola GNU/Linux-libre'|'Chakra'|'Manjaro'|'Antergos'|'KaOS') pkgs=$(pacman -Qq | wc -l) ;;
42 'Frugalware') pkgs=$(pacman-g2 -Q | wc -l) ;;
43 + 'SliTaz') pkgs=$(tazpkg list | wc -l) ;;
44 'Fuduntu'|'Ubuntu'|'Mint'|'SolusOS'|'Debian'|'Raspbian'|'LMDE'|'CrunchBang'|'Peppermint'|'LinuxDeepin'|'Kali Linux'|'Trisquel'|'elementary OS') pkgs=$(dpkg --get-selections | wc -l) ;;
45 'Slackware') pkgs=$(ls -1 /var/log/packages | wc -l) ;;
46 'Gentoo'|'Sabayon'|'Funtoo') pkgs=$(ls -d /var/db/pkg/*/* | wc -l) ;;
47 @@ -2967,6 +2972,33 @@
48 "${c2} ............... %s")
49 ;;
51 + "#SliTaz")
52 + if [[ "$no_color" != "1" ]]; then
53 + c1=$(getColor 'light grey') # Light Grey
54 + fi
55 + if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
56 + startline="0"
57 + fulloutput=(
58 +"${c1} # # %s"
59 +"${c1} # ## # %s"
60 +"${c1} ## ## ### ## %s"
61 +"${c1} ## ### ### ## %s"
62 +"${c1} ## ### ## ## %s"
63 +"${c1} ### #### ##### #### ###%s"
64 +"${c1} #### ##### ####### ##### ####%s"
65 +"${c1} ############################ %s"
66 +"${c1} ###################### %s"
67 +"${c1} ################################# %s"
68 +"${c1} ## ################ #### ## %s"
69 +"${c1} # ### ############ ### ## %s"
70 +"${c1} # ## ########### ### # %s"
71 +"${c1} # # ########### # %s"
72 +"${c1} ######## %s"
73 +" %s"
74 +" %s"
75 +" %s")
76 + ;;
77 +
79 "KaOS")
80 if [[ "$no_color" != "1" ]]; then
81 @@ -3086,7 +3118,7 @@
82 if [[ "$no_color" != "1" ]]; then
83 c1=$(getColor 'white') # White
84 c2=$(getColor 'dark grey') # Light Gray
85 - c3=$(getColor 'yellow') # Light Yellow
86 + c3=$(getColor 'light red') # Light Red
87 fi
88 if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; c2="${my_lcolor}"; c3="${my_lcolor}"; fi
89 startline="0"
90 @@ -3188,7 +3220,7 @@
91 "Arch Linux - Old"|"Fedora"|"Mandriva"|"Mandrake"|"Chakra"|"Sabayon"|"Slackware"|"Mac OS X"|"Trisquel"|"Kali Linux"|"Jiyuu Linux"|"Antergos"|"KaOS") labelcolor=$(getColor 'light blue');;
92 "Arch Linux"|"Frugalware"|"Mageia") labelcolor=$(getColor 'light cyan');;
93 "Mint"|"LMDE"|"openSUSE"|"LinuxDeepin"|"DragonflyBSD"|"Manjaro"|"Manjaro-tree"|"Android") labelcolor=$(getColor 'light green');;
94 - "Ubuntu-3color"|"FreeBSD"|"Debian"|"Raspbian"|"BSD"|"Red Hat Enterprise Linux"|"Peppermint"|"Cygwin"|"Fuduntu"|"NetBSD"|"Scientific Linux"|"DragonFlyBSD"|"BackTrack Linux") labelcolor=$(getColor 'light red');;
95 + "Ubuntu-3color"|"FreeBSD"|"Debian"|"Raspbian"|"BSD"|"Red Hat Enterprise Linux"|"Peppermint"|"Cygwin"|"Fuduntu"|"NetBSD"|"Scientific Linux"|"DragonFlyBSD"|"SliTaz"|"BackTrack Linux") labelcolor=$(getColor 'light red');;
96 "CrunchBang"|"SolusOS"|"Viperr"|"elementary"*) labelcolor=$(getColor 'dark grey');;
97 "Gentoo"|"Parabola GNU/Linux-libre"|"Funtoo"|"Funtoo-text") labelcolor=$(getColor 'light purple');;
98 "CentOS"|"Ubuntu"|*) labelcolor=$(getColor 'yellow');;