Skip to content

Commit 16cd8eb

Browse files
authored
add temperature logging (#2783)
1 parent c30e122 commit 16cd8eb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/k1-setup/jetson-clocks-refresh.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ Type=oneshot
77
StandardOutput=journal
88
StandardError=journal
99
ExecStartPre=/usr/bin/jetson_clocks --show
10+
ExecStartPre=bash -c 'for z in /sys/class/thermal/thermal_zone*; do printf "%%s: %%s C\n" "$(cat "$z/type")" "$(( $(<"$z/temp") / 1000 ))"; done'
1011
ExecStart=/usr/bin/jetson_clocks

0 commit comments

Comments
 (0)