Skip to content

Commit 1965cd4

Browse files
committed
drivetemplist.sh: init
1 parent f0ad21c commit 1965cd4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivetemplist.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# Uses drivetemp kernel module to check drive temps and display their name
3+
# https://unix.stackexchange.com/a/617450
4+
5+
grep -l "drivetemp" /sys/class/hwmon/hwmon*/name | while read -r f;
6+
do printf "%s: %-.2s°C\n" "$(<"${f%/*}/device/model")" "$(<"${f%/*}/temp1_input")";
7+
done

0 commit comments

Comments
 (0)