mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 05:53:22 -07:00
* usr/lib/byobu/cpu_temp: LP: #1587139
- add cpu temp support for rpi1, rpi2, and rpi3
This commit is contained in:
parent
b841fa0e38
commit
a9e5dac976
2 changed files with 8 additions and 3 deletions
5
debian/changelog
vendored
5
debian/changelog
vendored
|
@ -1,5 +1,6 @@
|
|||
byobu (5.110) unreleased; urgency=medium
|
||||
|
||||
[ Dustin Kirkland ]
|
||||
* usr/lib/byobu/logo:
|
||||
- added a logo for AlpineLinux, which has published an apk for Byobu
|
||||
* usr/share/byobu/status/status, usr/share/byobu/status/statusrc:
|
||||
|
@ -15,6 +16,10 @@ byobu (5.110) unreleased; urgency=medium
|
|||
* usr/lib/byobu/include/select-session.py: LP: #1583590
|
||||
- fix default window selection by just hitting enter
|
||||
|
||||
[ ironstorm ]
|
||||
* usr/lib/byobu/cpu_temp: LP: #1587139
|
||||
- add cpu temp support for rpi1, rpi2, and rpi3
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 05 Jul 2016 10:47:25 -0500
|
||||
|
||||
byobu (5.109-0ubuntu1) yakkety; urgency=medium
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
__cpu_temp_detail() {
|
||||
local i
|
||||
for i in $MONITORED_TEMP /sys/class/hwmon/hwmon*/device/temp*_input /sys/class/hwmon/hwmon*/temp*_input /proc/acpi/ibm/thermal /proc/acpi/thermal_zone/*/temperature; do
|
||||
for i in $MONITORED_TEMP /sys/class/hwmon/hwmon*/device/temp*_input /sys/class/hwmon/hwmon*/temp*_input /proc/acpi/ibm/thermal /proc/acpi/thermal_zone/*/temperature /sys/class/thermal/thermal_zone*/temp; do
|
||||
[ -r "$i" ] || continue
|
||||
printf "%s\n" "$i:"
|
||||
cat "$i"/*
|
||||
|
@ -30,9 +30,9 @@ __cpu_temp_detail() {
|
|||
|
||||
__cpu_temp() {
|
||||
local i t unit
|
||||
for i in $MONITORED_TEMP /sys/class/hwmon/hwmon*/device/temp*_input /sys/class/hwmon/hwmon*/temp*_input /proc/acpi/ibm/thermal /proc/acpi/thermal_zone/*/temperature; do
|
||||
for i in $MONITORED_TEMP /sys/class/hwmon/hwmon*/device/temp*_input /sys/class/hwmon/hwmon*/temp*_input /proc/acpi/ibm/thermal /proc/acpi/thermal_zone/*/temperature /sys/class/thermal/thermal_zone*/temp; do
|
||||
case "$i" in
|
||||
*temp*_input)
|
||||
*temp*_input|*thermal_zone*/temp)
|
||||
[ -s "$i" ] && read t < "$i" && t=$(($t/1000))
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue