Search
j0ke.net Open Build Service
>
Projects
>
stresslinux
>
sl-watch
> hddtemp-watch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File hddtemp-watch of Package sl-watch
#!/bin/bash -l while [ -f /proc/partitions ] ; do clear DISKS=`cat /proc/partitions | grep -E '([hs]d[a-z]$)' | awk '{print $NF}'` for DISK in ${DISKS} ; do if [ -z "`grep -i -E '(vmware|qemu|raid|dell|kingston|usb|nand|flash)' /sys/block/${DISK}/device/vendor`" ] ; then hddtemp ${DISK} fi done sleep 2 done