getInfo 1.32.1

This commit is contained in:
kyodev 2017-10-02 16:14:14 +02:00
parent 00c89c7327
commit d10b6f7cf1
2 changed files with 18 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
version=1.32.0
version=1.32.1
date="02/10/2017"
projet="simpledeb"
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
@ -789,7 +789,7 @@ figet_battery(){ # 02/10/2017
batt_nb="$(ls /sys/class/power_supply/ | grep -c 'BAT')"
if [ "$batt_nb" -gt "0" ]; then
# extraction valeur
batt_alim="$(cat /sys/class/power_supply/AC0/online)"
batt_alim="$(grep . /sys/class/power_supply/AC*/online | sed -n '1p')"
unset batt_detail
for ibat in /sys/class/power_supply/BAT*; do
# extraction pour valeur de calcul ou selon type unité
@ -1405,19 +1405,33 @@ prg_1(){ # début
}
prg_2(){ # traitements principaux
printf " ."
echo fi_systeme
fi_systeme; printf "."
echo fi_cpu
fi_cpu; printf "."
echo fi_gpu
fi_gpu; printf "."
echo fi_batt
fi_batt; printf "."
echo fi_localisation
fi_localisation; printf "."
echo fi_sources
fi_sources; printf "."
echo fi_disk
fi_disk; printf "."
echo fi_reseau
fi_reseau; printf "."
echo fi_nm
fi_nm; printf "." # si network manager, état et conf
echo fi_nm_wifis
fi_nm_wifis; printf "." # si network manager, wifi proximité
echo fi_usb
fi_usb; printf "."
echo fi_system_analyse
fi_system_analyse; printf "."
echo fi_dmesg
fi_dmesg; printf "."
echo fi_nonFree
fi_nonFree; printf ".\n\n"
}
prg_3(){ # fin de traitements

View File

@ -14,7 +14,7 @@
* f__wget_test
* comment f__user getInfo
## 1.32.0 02/10/2017
## 1.32.1 02/10/2017
* révision sed s/
* fi_systeme: boot image avec options
@ -22,6 +22,7 @@
* révision nommage variable fonction neofetch
* variables de boucles en local
* f__user, premier essai root only, fonctionnement en root, function à réviser
* figet_battery, alim, correction si AC au miue de AC0
## 1.31.0 01/10/2017