mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-23 08:23:14 +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
|
.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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user