updates for charging and replacing battery

This commit is contained in:
2020-11-30 20:16:18 -05:00
parent 1490d128e7
commit 446721d606

View File

@@ -23,8 +23,13 @@ if [ ${BATTERY_STATE} = 'discharging' ]; then
else
BATTERY_STATE='LB'
fi
elif [ ${BATTERY_STATE} = 'charging' ] || [ ${BATTERY_STATE} = 'high' ]; then
elif [ ${BATTERY_STATE} = 'charging' ]; then
BATTERY_STATE='CHRG'
elif [ ${BATTERY_STATE} = 'high' ]; then
BATTERY_STATE='OL'
if [ ${BATTERY_WEAR_PERCENT} <= 25 ]; then
BATTERY_STATE='RB'
fi
fi
echo "# Last Updated: $(date)" > ${FILE_LOCATION}