Update check-dns.ps1, check-drives.ps1, and check-smart-devices.ps1

This commit is contained in:
Markus Fleschutz
2022-10-09 19:40:51 +02:00
parent 357a6f2fbb
commit 3375e6db6e
3 changed files with 14 additions and 13 deletions

View File

@ -8,7 +8,7 @@
Specifies the type of selftest: either short (default) or long
.EXAMPLE
PS> ./check-smart-devices
✔️ short selftest started on S.M.A.R.T. device /dev/sda
✅ Started short selftest on S.M.A.R.T. device /dev/sda
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
@ -28,7 +28,7 @@ try {
$Array = $Device.split(" ")
$Device = $Array[0]
$Result = (sudo smartctl --test=$type $Device)
"✔️ $type selftest started on S.M.A.R.T. device $Device"
"✅ Started $type selftest on S.M.A.R.T. device $Device"
}
exit 0 # success
} catch {