10 lines
160 B
Bash
Executable file
10 lines
160 B
Bash
Executable file
#!/bin/sh
|
|
|
|
speed=$(sensors | grep fan1 | sed -e 's/fan1: *//' -e 's/ RPM.*$//')
|
|
|
|
if [ "$speed" != "" ]; then
|
|
echo "$speed RPM"
|
|
else
|
|
echo "FAN ERROR"
|
|
fi
|
|
|