13 lines
366 B
Bash
Executable File
13 lines
366 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# set standby timeout to 5 minutes (60*5 seconds)
|
|
/usr/sbin/hdparm -S 60 /dev/sda
|
|
/usr/sbin/hdparm -S 60 /dev/sdb
|
|
/usr/sbin/hdparm -S 60 /dev/sdc
|
|
/usr/sbin/hdparm -S 60 /dev/sdd
|
|
|
|
/usr/bin/updatedb &
|
|
sleep 600s
|
|
|
|
/home/pratham/.scripts/flameboi/hdd/notify_user.sh "critical" "Check HDDs" "Check if the HDDs are in standby ([re]boot-ed)" && exit 0
|