Added HDD sleep helper for reference
This commit is contained in:
parent
a7135c8423
commit
e4abda5134
1 changed files with 7 additions and 0 deletions
7
sleephdd.sh
Executable file
7
sleephdd.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
# would recommend using hd-idle over hdparm
|
||||
|
||||
SLEEPHDD_MOUNTPOINT="/mnt/backup"
|
||||
SLEEPHDD_DEVICE="/dev/sdb"
|
||||
|
||||
! mountpoint -q "$SLEEPHDD_MOUNTPOINT" || sudo umount $SLEEPHDD_MOUNTPOINT
|
||||
sudo hdparm -y $SLEEPHDD_DEVICE
|
Loading…
Reference in a new issue