Skip to content

Commit 397b4df

Browse files
authored
Create smartctl-helper
ironsheep#149
1 parent 3e56512 commit 397b4df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

smartctl-helper

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
smartctl --scan | awk '{ print $1 }' | while read dev; do
4+
temp="$(smartctl -a $dev | grep "Temperature:" | awk '{ print $2 }')"
5+
echo "$dev:$temp"
6+
done

0 commit comments

Comments
 (0)