Anthony Wang 2021-12-16 11:24:40 -06:00
parent 16e81693e5
commit 3773f2a7b2
Signed by: a
GPG Key ID: BC96B00AEC5F2D76
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
#!/bin/bash
hwmon="/sys/class/hwmon"
mdevs=`ls $hwmon`
zenmon=""
ok=0
for dev in $mdevs; do
path="$hwmon/$dev"
devname=`cat $path/name`
if [ "$devname" == "zenpower" ]; then
cat $path/debug_data
ok=1
fi
done
if [ $ok -ne 1 ]; then
echo "Zenpower not found"
exit
fi