Skip to content

Commit 11d3718

Browse files
authored
Add files via upload
1 parent cca2cad commit 11d3718

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

conkys_socket.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#! /usr/bin/env bash
2+
3+
socat TCP-LISTEN:7634,reuseaddr,fork EXEC:./hdd.sh

hdd.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#! /usr/bin/env bash
2+
3+
out="|"
4+
5+
cti () {
6+
while read -r neco
7+
do
8+
read -r temp < <(cat $tmp/$neco/$tmp1 2> /dev/null || continue)
9+
out="$out$neco|conkys $neco|${temp:0:2}|C||"
10+
done <<<$vystup
11+
}
12+
13+
14+
tmp=/sys/block
15+
tmp1="device/device/hwmon/*/temp1_input"
16+
vystup=`ls "$tmp" | grep '^nvme'`
17+
cti
18+
19+
tmp=/dev/shm/conkys
20+
tmp1=temp
21+
vystup=`ls "$tmp"`
22+
cti
23+
24+
[ "$out" ] && echo $out
25+

0 commit comments

Comments
 (0)