Advertisement
Guest User

Untitled

a guest
May 28th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/bin/sh
  2. gpuspeed="/sys/class/hwmon/hwmon0/device/fan1_input"
  3. gputemp="/sys/class/hwmon/hwmon2/temp1_input"
  4. if [ ! -f $gpuspeed ] || [ ! -f $gputemp ];then
  5. echo "<txt>ERR</txt>"
  6. exit
  7. fi
  8. temp="$(cat $gputemp)"
  9. speed="$(cat $gpuspeed)"
  10. printf "<txt><b>GPU:</b> %.2s°C | %d RPM</txt>" "$temp" "$speed"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement