mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Updated smart-health-check
This commit is contained in:
@@ -31,7 +31,7 @@ check-attributes() {
|
|||||||
local raw_status="$(smartctl -A $1)"
|
local raw_status="$(smartctl -A $1)"
|
||||||
local report="$(echo "$raw_status" | grep "^ID# ")"
|
local report="$(echo "$raw_status" | grep "^ID# ")"
|
||||||
|
|
||||||
for id in 1 5 10 196 198; do
|
for id in 1 5 10 196 197 198; do
|
||||||
attr="$(echo "$raw_status" | grep "^\s*${id}\s")"
|
attr="$(echo "$raw_status" | grep "^\s*${id}\s")"
|
||||||
if [ -n "$(trim "$attr")" ] && [[ "$(trim "$attr")" != *" 0" ]]; then
|
if [ -n "$(trim "$attr")" ] && [[ "$(trim "$attr")" != *" 0" ]]; then
|
||||||
fail=1
|
fail=1
|
||||||
|
|||||||
Reference in New Issue
Block a user