Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- temp="`hddtemp /dev/sda -n 2>/dev/null`"
- if [[ $temp = [0-9][0-9] ]]; then
- if [ $temp -gt 40 ]; then
- echo '${color orange}${exec hddtemp /dev/sda | cut -d ':' -f 2- | cut -c 2-}${color}'
- else
- echo "`hddtemp /dev/sda | cut -d ':' -f 2- | cut -c 2-`"
- fi
- fi
- temp="`hddtemp /dev/sdb -n 2>/dev/null`"
- if [[ $temp = [0-9][0-9] ]]; then
- if [ $temp -gt 40 ]; then
- echo '${color orange}${exec hddtemp /dev/sdb | cut -d ':' -f 2- | cut -c 2-}${color}'
- else
- echo "`hddtemp /dev/sdb | cut -d ':' -f 2- | cut -c 2-`"
- fi
- fi
- temp="`hddtemp /dev/sdc -n 2>/dev/null`"
- if [[ $temp = [0-9][0-9] ]]; then
- if [ $temp -gt 40 ]; then
- echo '${color orange}${exec hddtemp /dev/sdc | cut -d ':' -f 2- | cut -c 2-}${color}'
- else
- echo "`hddtemp /dev/sdc | cut -d ':' -f 2- | cut -c 2-`"
- fi
- fi
- temp="`hddtemp /dev/sdd -n 2>/dev/null`"
- if [[ $temp = [0-9][0-9] ]]; then
- if [ $temp -gt 40 ]; then
- echo '${color orange}${exec hddtemp /dev/sdd | cut -d ':' -f 2- | cut -c 2-}${color}'
- else
- echo "`hddtemp /dev/sdd | cut -d ':' -f 2- | cut -c 2-`"
- fi
- fi
- temp="`hddtemp /dev/sde -n 2>/dev/null`"
- if [[ $temp = [0-9][0-9] ]]; then
- if [ $temp -gt 40 ]; then
- echo '${color orange}${exec hddtemp /dev/sde | cut -d ':' -f 2- | cut -c 2-}${color}'
- else
- echo "`hddtemp /dev/sde | cut -d ':' -f 2- | cut -c 2-`"
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment