Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [[ "$(sensors)" =~ No* ]]
- then
- echo "No sensors found"
- else
- echo "Sensors Valid"
- fi
- if sensors > /dev/null 2>&1
- then
- echo "Sensors valid"
- else
- echo "sensors failed, due to missing sensors, not being installed or such"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement