Advertisement
Guest User

Untitled

a guest
May 29th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. TEMP=$(cat /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp3_input)
  2. if [ $TEMP -ge 1 ]
  3. then
  4.  
  5. if [ $TEMP -le 6000 ]
  6. then
  7. echo "is less than or equal to 6000"
  8. elif [ $TEMP -ge 4500 ]
  9. then
  10. echo "greater or equal to 4500"
  11. else
  12. echo "Something went wrong?"
  13. fi
  14.  
  15. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement