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
|
#!/bin/bash
|
||||||
|
|
||||||
version=2.59.4
|
version=2.59.5
|
||||||
date="9/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/"
|
||||||
|
@ -2235,7 +2235,7 @@ figet_batt(){ #v2 9/12/2017
|
||||||
[ "$fg_batt" ] || fg_batt="répertoire power_supply inaccessible"
|
[ "$fg_batt" ] || fg_batt="répertoire power_supply inaccessible"
|
||||||
return 1
|
return 1
|
||||||
fi
|
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
|
if [ "$fg_nb_batt" -eq 0 ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue