getInfo 2.20.3

This commit is contained in:
kyodev 2017-10-29 22:02:01 +01:00
parent 06ff414849
commit 66ba75f211
2 changed files with 12 additions and 24 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
version=2.20.2
version=2.20.3
date="29/10/2017"
projet="simpledeb"
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
@ -1417,6 +1417,7 @@ figet_dmi(){ # 29/10/2017
fget_dmi=$(printf '%7s: %s' "produit" "$product")$'\n'
[ "$indic1" != "$indic2" ] && fget_dmi+=$(printf '%7s: %s' "board" "$board")$'\n'
fget_dmi+=$(printf '%7s: %s' "bios" "$bios")
# chassis, pas utilisé
# for idmi in chassis_vendor chassis_version chassis_type; do
# tempo=$(cat /sys/class/dmi/id/$idmi 2>/dev/null)
# tempo=$(sed 's/x.xx*//' <<< $tempo)
@ -1425,28 +1426,13 @@ figet_dmi(){ # 29/10/2017
# done
}
figet_gpu(){ # thanks neofetch, assigne $fget_gpu # 09/10/2017
# assigne $fget_gpu, bug, expurgé rapidement en attendant ré-écriture
figet_gpu(){ # thanks neofetch, assigne $fget_gpu # 29/10/2017
local gpu="$(lspci -mm | gawk -F '\\"|\\" \\"' '/"Display|"3D|"VGA/ {print $3 " " $4}')"
# debug: gpu="$(cat tests/lspci | gawk -F '\\"|\\" \\"' '/"Display|"3D|"VGA/ {print $3 " " $4}')"
case "$gpu" in
*"advanced"*)
gpu="${gpu//Intel*$'\n'}"
gpu="${gpu/'[AMD/ATI]' }"
gpu="${gpu/'[AMD]' }"
gpu="${gpu/OEM }"
gpu="${gpu/ \/ *}"
gpu="${gpu/*\[}"
gpu="${gpu/\]*}"
gpu="AMD $gpu" ;;
*"nvidia"*)
gpu="${gpu//Intel*$'\n'}"
gpu="${gpu/*\[}"
gpu="${gpu/\]*}"
gpu="NVIDIA $gpu" ;;
*"virtualbox"*)
gpu="VirtualBox Graphics Adapter" ;;
esac
[[ "$gpu" =~ "intel" ]] && gpu="Intel Integrated Graphics"
gpu="${gpu//'Corporation'}"
gpu="${gpu//'Advanced Micro Devices, Inc.'/AMD}"
gpu="${gpu// / }"
fget_gpu="$gpu"
}
@ -2175,7 +2161,7 @@ if [[ "$options" =~ all|-d|-h|-c ]]; then
urlNotice="https://kyodev.frama.io/kyopages/scripts/getInfo/"
fi
fi
ligneRapport="Rapport du $(date '+%d/%m/%Y %H:%M %z') | $0 $* | [$script $version]($urlNotice)"
ligneRapport="Rapport du $(date '+%d/%m/%Y %H:%M %z') ● $0 $* ● [$script $version]($urlNotice)"
# traitement options menu catégories
for k in $options; do
@ -2189,7 +2175,7 @@ for j in $options; do
case $j in
-t | --test )
prg_1 "$*"
fi_disk
fi_graph
prg_3
exit ;; # test seulement
-c* | all )

View File

@ -8,15 +8,17 @@
* revoir modules réseau
* réviser alert_
* finir révision vrms
* figet_gpu à revoir
---
## 2.20.2 29/10/2017
## 2.20.3 29/10/2017
* nouveau: figet_distrib
* nouveau: taille des fichier journaux
* suppression: figet_distro neofetch
* fix: ? bug aléatoire wwn
* fix: figet_gpu, fix rapide en attendant réécriture
## 2.19.6 28/10/2017