BATTERY: improve battery script and configuration in .profile
This commit is contained in:
@ -46,6 +46,7 @@ battery_status()
|
||||
case $(uname -s) in
|
||||
"Linux")
|
||||
BATPATH=${BATPATH:-/sys/class/power_supply/BAT1}
|
||||
[[ -h "${BATPATH}" ]] || return 0
|
||||
STATUS=$BATPATH/status
|
||||
[ "$1" = `cat $STATUS` ] || [ "$1" = "" ] || return 0
|
||||
if [ -f "$BATPATH/energy_full" ]; then
|
||||
|
Reference in New Issue
Block a user