mirror of https://framagit.org/kyodev/kyopages.git
getInfo 2.59.5
This commit is contained in:
parent
b4f33a0f44
commit
7cfaed00a8
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
version=2.59.4
|
||||
version=2.59.5
|
||||
date="9/12/2017"
|
||||
projet="simpledeb"
|
||||
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
||||
|
@ -2235,7 +2235,7 @@ figet_batt(){ #v2 9/12/2017
|
|||
[ "$fg_batt" ] || fg_batt="répertoire power_supply inaccessible"
|
||||
return 1
|
||||
fi
|
||||
fg_nb_batt="$(grep -i 'Battery' /sys/class/power_supply/*/type | grep -c .)"
|
||||
fg_nb_batt="$(grep -is 'Battery' /sys/class/power_supply/*/type | grep -c .)" # pas de messages, pb gentoo, pk?
|
||||
if [ "$fg_nb_batt" -eq 0 ]; then
|
||||
return 0
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue