be a bit less spammy.
This commit is contained in:
parent
fb289aef43
commit
d57f80b683
1 changed files with 0 additions and 3 deletions
|
@ -13,10 +13,8 @@
|
|||
while true
|
||||
do
|
||||
STATUS="$(cat /sys/class/power_supply/{BAT*,bat*}/status 2>/dev/null)"
|
||||
${DEBUG} && echo "Status: ${STATUS}"
|
||||
if [ ! "${STATUS}" = "${CURRENT_MODE}" ]
|
||||
then
|
||||
${DEBUG} && echo "Status changed."
|
||||
case ${STATUS} in
|
||||
Disch*)
|
||||
log $0 "Switching to battery mode."
|
||||
|
@ -45,6 +43,5 @@ do
|
|||
esac
|
||||
fi
|
||||
CURRENT_MODE="${STATUS}"
|
||||
${DEBUG} && echo "Current Mode: ${CURRENT_MODE}"
|
||||
sleep 2
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue