Skip to content

Commit

Permalink
Merge branch 'main' into UPDATE
Browse files Browse the repository at this point in the history
  • Loading branch information
rern authored Oct 11, 2022
2 parents 340d734 + d92961b commit c15a716
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions srv/http/bash/settings/system-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ $( [[ $startup ]] && echo "$startup<wide>&ensp;<gr>(kernel + userspace)</gr></wi
! : >/dev/tcp/8.8.8.8/53 && status+="<br><i class='fa fa-warning'></i>&ensp;No Internet connection"
throttled=$( /opt/vc/bin/vcgencmd get_throttled | cut -d= -f2 )
if [[ $throttled == 0x1 ]]; then # https://www.raspberrypi.org/documentation/raspbian/applications/vcgencmd.md
status+="<br><i class='fa fa-warning blink red'></i>&ensp;Voltage under 4.7V - detected now <code>$throttled</code>"
status+="<br><i class='fa fa-warning blink red'></i>&ensp;Voltage under 4.7V - detected now <code>0x1</code>"
elif [[ $throttled == 0x10000 ]]; then
status+="<br><i class='fa fa-warning'></i>&ensp;Voltage under 4.7V - occurred <code>$throttled</code>"
status+="<br><i class='fa fa-warning yl'></i>&ensp;Voltage under 4.7V - occurred <code>0x10000</code>"
fi
# for interval refresh
[[ $1 == status ]] && echo $status && exit
Expand Down Expand Up @@ -106,7 +106,6 @@ if [[ $usb ]]; then
fi
[[ ! $hddapm ]] && hddapm=$( hdparm -B $source \
| grep -m1 APM_level \
| awk '{print $NF}' \
| tr -d -c 0-9 )
done
fi
Expand Down

0 comments on commit c15a716

Please sign in to comment.