Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [[ "$(sensors)" =~ No* ]]
  4. then
  5. echo "No sensors found"
  6. else
  7. echo "Sensors Valid"
  8. fi
  9.  
  10. if sensors > /dev/null 2>&1
  11. then
  12. echo "Sensors valid"
  13. else
  14. echo "sensors failed, due to missing sensors, not being installed or such"
  15. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement