Skip to content

Commit 6473a18

Browse files
authored
Add option EXECUTE_BEFORE_SPINDOWN to AFTER_HOOK
Add an option to execute the last custom hook before spinning down the drives and not after that.
1 parent b991ef5 commit 6473a18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

script-config.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,12 @@ BEFORE_HOOK_CMD=""
226226
# last command.
227227
# This option does not have any effect if CUSTOM_HOOK is set to 0
228228
# Use NAME for a friendly name, CMD for the command itself.
229+
# Set EXECUTE_BEFORE_SPINDOWN to 1, if you have hd-idle configured
230+
# to spin down your disks in the end and want the custom hook to be
231+
# executed before that. Default is execution after spindown.
229232
AFTER_HOOK_NAME=""
230233
AFTER_HOOK_CMD=""
234+
EXECUTE_BEFORE_SPINDOWN=0
231235

232236
####################### USER CONFIGURATION END #######################
233237

0 commit comments

Comments
 (0)