Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- gpuspeed="/sys/class/hwmon/hwmon0/device/fan1_input"
- gputemp="/sys/class/hwmon/hwmon2/temp1_input"
- if [ ! -f $gpuspeed ] || [ ! -f $gputemp ];then
- echo "<txt>ERR</txt>"
- exit
- fi
- temp="$(cat $gputemp)"
- speed="$(cat $gpuspeed)"
- printf "<txt><b>GPU:</b> %.2s°C | %d RPM</txt>" "$temp" "$speed"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement