Skip to content

Commit ad88fe1

Browse files
authored
Update CLI_smartreport.sh
1 parent 7439d16 commit ad88fe1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CLI_smartreport.sh

+12
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ echo "Smart Test Remote Maker Script"
66
echo ""
77
echo "Be sure to edit your drives in the script"
88

9+
### Checking dependencies ###
10+
command -v smartctl >/dev/null 2>&1 || if [[ $? -ne 0 ]] ; then
11+
echo -e "Error : Smartmontools not installed."
12+
exit
13+
fi
14+
15+
### Optionnal Sendmail (uncomment if needed) ###
16+
#command -v sendmail >/dev/null 2>&1 || if [[ $? -ne 0 ]] ; then
17+
# echo -e "Error : Sendmail not installed."
18+
# exit
19+
#fi
20+
921
### Parameters ###
1022
logfile="/tmp/smart_report.tmp"
1123

0 commit comments

Comments
 (0)