24 lines
474 B
Bash
Executable File
24 lines
474 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# areca sata fan/battery sensor readings
|
|
# needs the areca cli binary (32 or 64bit)
|
|
#
|
|
# note this cli doesn't like to be running multiple times and will hang
|
|
# so we use timeout (from coreutils) to kill in this case
|
|
#
|
|
# ONLY for old SATA controller output.
|
|
#
|
|
# (c) 2014, Tom Laermans for Observium
|
|
|
|
CLI=/root/cli64
|
|
|
|
if [ -f $CLI ];
|
|
then
|
|
DATA=$(timeout 5s $CLI hw info|grep :)
|
|
if [ "$DATA" != "" ];
|
|
then
|
|
echo '<<<areca-hw>>>'
|
|
echo "$DATA"
|
|
fi
|
|
fi
|
|
|