add last update time
This commit is contained in:
@@ -23,8 +23,8 @@ elif [ ${BATTERY_STATE} = 'charging' ]; then
|
||||
BATTERY_STATE='OL'
|
||||
fi
|
||||
|
||||
|
||||
echo "battery.charge: ${BATTERY_PERCENT_LEVEL}" > ${FILE_LOCATION}
|
||||
echo "# Last Updated: $(date)" > ${FILE_LOCATION}
|
||||
echo "battery.charge: ${BATTERY_PERCENT_LEVEL}" >> ${FILE_LOCATION}
|
||||
echo "battery.runtime: ${BATTERY_RUNTIME}" >> ${FILE_LOCATION}
|
||||
echo "ups.mfr: ${UPS_MFR}" >> ${FILE_LOCATION}
|
||||
echo "ups.model: ${UPS_MODEL}" >> ${FILE_LOCATION}
|
||||
|
||||
Reference in New Issue
Block a user