Add memory sensor
[khatus.git] / x2 / src / bash / exe / khatus_sensor_temperature.sh
... / ...
CommitLineData
1#! /bin/sh
2
3set -e
4
5thermal_zone="$1"
6
7awk '
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.025275 seconds and 4 git commands to generate.