Merge branch 'uniform-interface'
[khatus.git] / bin / khatus_sensor_temperature
1 #! /bin/sh
2
3 set -e
4
5 thermal_zone="$1"
6
7 awk '
8 BEGIN {
9 OFS = msg_fs ? msg_fs : "|"
10 Kfs = key_fs ? key_fs : ":"
11 }
12
13 {print("temp_c", $1 / 1000)}
14 ' \
15 "/sys/class/thermal/thermal_zone${thermal_zone}/temp"
This page took 0.060563 seconds and 5 git commands to generate.