Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while [[ true ]]
- do
- temp=`sensors 2>/dev/null|grep -m1 temp1|awk '{print $2}'|sed 's/[+°C]//g'`
- if [[ $temp > 64 ]]; then
- echo -ne "\r" $temp "-> waiting..."
- sleep 1
- else
- echo -ne "\r" $temp "-> "'\E[33;31m'"heating..."
- tput sgr0
- curSec=`date |cut -c 19`
- while [[ $curSec == `date |cut -c 19` ]]; do echo "coal">/dev/null; done
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement