getInfo 2.50.1

This commit is contained in:
kyodev 2017-11-30 20:41:28 +01:00
parent df0ac3ab34
commit 6518a6a158
2 changed files with 14 additions and 11 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
version=2.50.0
version=2.50.1
date="30/11/2017"
projet="simpledeb"
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
@ -605,12 +605,15 @@ fi_batt(){ # 10/11/2017
fi_bluez(){ # 30/11/2017
local bluez cmd_bluez cmt_bluez mod cmd_mod cmt_mod srch_mod text
[ "$( f__which hciconfig )" ] || return 0
fe_nb_bluez=$( hciconfig name | grep -c '^hci[0-9].*$' )
fe_cards_bluez=$( hciconfig name | grep -Eo '^hci[0-9]+' )
fe_cards_bluez=${fe_cards_bluez//[[:cntrl:]]/ }
[ "$1" == "silent" ] && return 0 # pas d"affichage
[ "$fe_nb_bluez" -eq 0 ] && return 0
if [ "$( f__which hciconfig )" ]; then
fe_nb_bluez=$( hciconfig name | grep -c '^hci[0-9].*$' )
fe_cards_bluez=$( hciconfig name | grep -Eo '^hci[0-9]+' )
fe_cards_bluez=${fe_cards_bluez//[[:cntrl:]]/ }
else
fe_nb_bluez=0
return 0
fi
[ "$1" == "silent" ] && return 0
# état
bluez=$( hciconfig -a )
@ -622,7 +625,7 @@ fi_bluez(){ # 30/11/2017
cmd_mod="lsmod | grep -Ew '$fg_modKernel'" # module driver
[ "$( f__wcv -l "$mod" )" -gt 1 ] && pluriel="s" || unset pluriel
cmt_mod="$( f__wcv -l "$mod" ) module"$pluriel" utilisé"$pluriel" *"
srch_mod=${fg_modMotif//|/ } # fg_modMotif motif de recherche, avec |
srch_mod=${fg_modMotif//|/ } # fg_modMotif motif de recherche, avec |
###
text="## Bluetooth \n\n"
f_display "bluez" "cmd" "$cmd_bluez" "$cmt_bluez"
@ -1945,7 +1948,7 @@ fi_systeme(){ # 30/11/2017
f__architecture || f__info "Architecture non supportée"
###
# text="## système \n\n"
text+="$( sed -E 's/(.*)/> **\1**/' <<<$fg_dmi ) \n\n"
text+="$( sed -E 's/(.*)/> **\1** /' <<<$fg_dmi ) \n\n"
text+="* CPU \n"
text+=" * **$( sed -n '1p' <<< $fg_cpu )** \n"
text+="* Vidéo \n"
@ -3829,7 +3832,7 @@ for j in $options; do
prg_1 "$*"
echo -n "•"
# fi_systeme
fi_net
fi_bluez
exit ;; # test
-c* | all )
[ "$j" == "-c" ] && exec $0 "menu"

View File

@ -5,7 +5,7 @@
## 2.50.0 30/11/2017
## 2.50.1 30/11/2017
* nouveau: fi_system, panel
* nouveau: figet_modules, maj dynamiques des modules sur le kernel actif