11 lines
119 B
Bash
11 lines
119 B
Bash
#!/bin/sh
|
|
|
|
get_smart() {
|
|
smartctl -H "$1"
|
|
}
|
|
|
|
get_smart_status() {
|
|
smartctl -H "$1" 2>/dev/null >/dev/null
|
|
echo $?
|
|
}
|