Improved both scripts

This commit is contained in:
Markus Fleschutz 2021-02-04 19:42:39 +01:00
parent 2b50e4f4bf
commit 776c35b086
2 changed files with 3 additions and 3 deletions

View File

@ -4,8 +4,8 @@
.DESCRIPTION queries the S.M.A.R.T. data of your HDD/SSD's and saves it to the current/given directory .DESCRIPTION queries the S.M.A.R.T. data of your HDD/SSD's and saves it to the current/given directory
.LINK https://github.com/fleschutz/PowerShell .LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0 .NOTES Author: Markus Fleschutz / License: CC0
requires smartctl from smartmontools requires smartctl (smartmontools) and admin rights
it's recommended to call this script once per day for automation copy this script to /etc/cron.daily
#> #>
#Requires -RunAsAdministrator #Requires -RunAsAdministrator

View File

@ -5,7 +5,7 @@
# Author: Markus Fleschutz # Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell # Source: github.com/fleschutz/PowerShell
# License: CC0 # License: CC0
# NOTE: for automation copy me to /etc/cron.daily # NOTE: for automation copy this script to /etc/cron.daily
if ! [ $(id -u) = 0 ]; then if ! [ $(id -u) = 0 ]; then
echo "Please run this script as root" echo "Please run this script as root"