mirror of https://framagit.org/kyodev/kyopages.git
getInfo 2.59.1
This commit is contained in:
parent
023d2b2c87
commit
9eaa1f229e
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
version=2.59.0
|
version=2.59.1
|
||||||
date="8/12/2017"
|
date="9/12/2017"
|
||||||
projet="simpledeb"
|
projet="simpledeb"
|
||||||
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
||||||
script="getInfo"
|
script="getInfo"
|
||||||
|
@ -1960,8 +1960,9 @@ fi_ssid(){ #v2 1/12/2017
|
||||||
rm "$fileOutput"
|
rm "$fileOutput"
|
||||||
}
|
}
|
||||||
|
|
||||||
fi_system(){ # 8/12/2017
|
fi_system(){ # 9/12/2017
|
||||||
local mbr uname bootImage initDaemon date_install ligne lastboot uptime uptimePure loadAverage serverX pluriel text
|
local mbr uname bootImage initDaemon date_install ligne lastboot uptime uptimePure loadAverage pluriel text
|
||||||
|
local enum_batt serverX
|
||||||
local alimentation alim_total
|
local alimentation alim_total
|
||||||
|
|
||||||
# appels fonctions externes
|
# appels fonctions externes
|
||||||
|
@ -2051,6 +2052,8 @@ fi_system(){ # 8/12/2017
|
||||||
if ( alim_total != alim_on ) print ", " alim_on " branchée" pllo; else print "" }
|
if ( alim_total != alim_on ) print ", " alim_on " branchée" pllo; else print "" }
|
||||||
' /sys/class/power_supply/AC*/online )
|
' /sys/class/power_supply/AC*/online )
|
||||||
fi
|
fi
|
||||||
|
# batterie(s)
|
||||||
|
enum_batt=$(grep -E '[A-Z][A-Z]' <<< $fg_batt)
|
||||||
###
|
###
|
||||||
[ "$ORIGIN" ] && f_pr titre2 "système"
|
[ "$ORIGIN" ] && f_pr titre2 "système"
|
||||||
f_pr l "$( sed -E 's/(.*)/**\1** /' <<<$fg_dmi )" # en gras
|
f_pr l "$( sed -E 's/(.*)/**\1** /' <<<$fg_dmi )" # en gras
|
||||||
|
@ -2099,7 +2102,7 @@ fi_system(){ # 8/12/2017
|
||||||
f_pr l2 "$alimentation" '[ "$alimentation" ]'
|
f_pr l2 "$alimentation" '[ "$alimentation" ]'
|
||||||
[ "$fg_nb_batt" -gt "1" ] && pluriel="s" || unset pluriel
|
[ "$fg_nb_batt" -gt "1" ] && pluriel="s" || unset pluriel
|
||||||
f_pr l2 "$fg_nb_batt batterie"$pluriel" présente"$pluriel":" '[ "$fg_batt" ]'
|
f_pr l2 "$fg_nb_batt batterie"$pluriel" présente"$pluriel":" '[ "$fg_batt" ]'
|
||||||
f_pr l3 "$(sed -n '1p' <<< $fg_batt)" '[ "$fg_batt" ]'
|
f_pr l3 "$enum_batt" '[ "$fg_batt" ]'
|
||||||
f_pr l '```'
|
f_pr l '```'
|
||||||
f_pr
|
f_pr
|
||||||
f_pr 1 "$( sed -E 's/^(.*: )(.*)/\1**\2**/' <<<$fg_disk_part_fix_tot )" '[ "$fg_disk_part_fix_tot" ]'
|
f_pr 1 "$( sed -E 's/^(.*: )(.*)/\1**\2**/' <<<$fg_disk_part_fix_tot )" '[ "$fg_disk_part_fix_tot" ]'
|
||||||
|
@ -3991,7 +3994,7 @@ for j in $options; do
|
||||||
ORIGIN='test'
|
ORIGIN='test'
|
||||||
prg_1 "$*"
|
prg_1 "$*"
|
||||||
echo -n "•"
|
echo -n "•"
|
||||||
fi_bluez
|
fi_reseau
|
||||||
echo; f_dspl_md "$fileOutput"
|
echo; f_dspl_md "$fileOutput"
|
||||||
exit ;; # test
|
exit ;; # test
|
||||||
-c* | all )
|
-c* | all )
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
# changelog getInfo
|
# changelog getInfo
|
||||||
|
|
||||||
|
## getInfo 2.59.1 9/12/2017
|
||||||
|
|
||||||
|
* révision: fi_system si plusieurs batteries
|
||||||
|
|
||||||
## getInfo 2.59.0 8/12/2017
|
## getInfo 2.59.0 8/12/2017
|
||||||
|
|
||||||
* révision: module, nouvelle méthode pour vidéo et net, figet_lspci, recherche directe module lspci
|
* révision: module, nouvelle méthode pour vidéo et net, figet_lspci, recherche directe module lspci
|
||||||
|
|
Loading…
Reference in New Issue