homeserver/roles/mgrote.install_packages/templates/hddtemps.sh

3 lines
198 B
Bash
Raw Normal View History

2020-08-18 11:57:53 +02:00
#!/bin/bash
watch --interval 10 --differences --color --no-title "hddtemp /dev/disk/by-id/ata-* | grep -v "part" | sed -r 's#(/dev/disk/by-id/ata-)([^:]+).*: ([0-9]{1,3}°C)#\3\t\2#g' | sort -n -r"