homeserver/roles/mgrote.install_packages/templates/hddtemps.sh
2020-08-18 11:57:53 +02:00

3 lines
162 B
Bash

#!/bin/bash
watch -c -n 5 -t "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"