updates for charging and replacing battery
This commit is contained in:
@@ -23,8 +23,13 @@ if [ ${BATTERY_STATE} = 'discharging' ]; then
|
|||||||
else
|
else
|
||||||
BATTERY_STATE='LB'
|
BATTERY_STATE='LB'
|
||||||
fi
|
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'
|
BATTERY_STATE='OL'
|
||||||
|
if [ ${BATTERY_WEAR_PERCENT} <= 25 ]; then
|
||||||
|
BATTERY_STATE='RB'
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "# Last Updated: $(date)" > ${FILE_LOCATION}
|
echo "# Last Updated: $(date)" > ${FILE_LOCATION}
|
||||||
|
|||||||
Reference in New Issue
Block a user