Slitaz support added
This commit is contained in:
parent
9b0c8fff2c
commit
7bf8f17854
2 changed files with 28 additions and 0 deletions
11
neofetch
11
neofetch
|
@ -93,6 +93,9 @@ get_distro() {
|
|||
"tiny") distro="${distro//version*}" ;;
|
||||
esac
|
||||
|
||||
elif type -p tazpkg >/dev/null; then
|
||||
distro="SliTaz $(cat /etc/slitaz-release)"
|
||||
|
||||
elif [[ -d "/system/app/" && -d "/system/priv-app" ]]; then
|
||||
distro="Android $(getprop ro.build.version.release)"
|
||||
|
||||
|
@ -476,6 +479,9 @@ get_packages() {
|
|||
type -p crew >/dev/null && \
|
||||
packages="$((packages+=$(ls -l /usr/local/etc/crew/meta/*.filelist | wc -l)))"
|
||||
|
||||
type -p tazpkg >/dev/null && \
|
||||
packages="$(($(tazpkg list|wc -l)-6))"
|
||||
|
||||
if type -p pkg >/dev/null; then
|
||||
case "$kernel_name" in
|
||||
"FreeBSD") packages="$((packages+=$(pkg info | wc -l)))" ;;
|
||||
|
@ -3150,6 +3156,11 @@ get_distro_colors() {
|
|||
ascii_file="slackware"
|
||||
;;
|
||||
|
||||
"SliTaz"*)
|
||||
set_colors 3 3
|
||||
ascii_file="slitaz"
|
||||
;;
|
||||
|
||||
"SmartOS"*)
|
||||
set_colors 6 7
|
||||
ascii_file="smartos"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue