mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-23 00:13:36 +01:00
Improved both scripts
This commit is contained in:
parent
2b50e4f4bf
commit
776c35b086
@ -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
|
||||
.LINK https://github.com/fleschutz/PowerShell
|
||||
.NOTES Author: Markus Fleschutz / License: CC0
|
||||
requires smartctl from smartmontools
|
||||
it's recommended to call this script once per day
|
||||
requires smartctl (smartmontools) and admin rights
|
||||
for automation copy this script to /etc/cron.daily
|
||||
#>
|
||||
|
||||
#Requires -RunAsAdministrator
|
||||
|
@ -5,7 +5,7 @@
|
||||
# Author: Markus Fleschutz
|
||||
# Source: github.com/fleschutz/PowerShell
|
||||
# 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
|
||||
echo "Please run this script as root"
|
||||
|
Loading…
Reference in New Issue
Block a user