From fb884386510f3d518a018b1c8dd22ad7ed93e645 Mon Sep 17 00:00:00 2001 From: shaun feakes Date: Sun, 19 Jul 2020 12:25:24 -0500 Subject: [PATCH] update --- extras/pi_health.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/extras/pi_health.sh b/extras/pi_health.sh index 9f43ef8..e833893 100755 --- a/extras/pi_health.sh +++ b/extras/pi_health.sh @@ -19,6 +19,14 @@ MAX_TEMP=78 WARNING_TEMP=72 +#Flag Bits +UNDERVOLTED=0x1 +CAPPED=0x2 +THROTTLED=0x4 +HAS_UNDERVOLTED=0x10000 +HAS_CAPPED=0x20000 +HAS_THROTTLED=0x40000 + if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" exit 1