We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7439d16 commit ad88fe1Copy full SHA for ad88fe1
CLI_smartreport.sh
@@ -6,6 +6,18 @@ echo "Smart Test Remote Maker Script"
6
echo ""
7
echo "Be sure to edit your drives in the script"
8
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
21
### Parameters ###
22
logfile="/tmp/smart_report.tmp"
23
email="[email protected]"
0 commit comments