diff options
-rw-r--r-- | hooks/sleep | 9 | ||||
-rw-r--r-- | install/sleep | 19 |
2 files changed, 28 insertions, 0 deletions
diff --git a/hooks/sleep b/hooks/sleep new file mode 100644 index 0000000..bade71a --- /dev/null +++ b/hooks/sleep @@ -0,0 +1,9 @@ +# vim:set ft=sh: +run_hook () +{ + if [ -z "${sleeptime}" ] || ! [ "${sleeptime}" -gt 0 ]; then + sleeptime=5 + fi + msg "Sleeping for ${sleeptime} seconds." + sleep ${sleeptime} +} diff --git a/install/sleep b/install/sleep new file mode 100644 index 0000000..f7f82bd --- /dev/null +++ b/install/sleep @@ -0,0 +1,19 @@ +# vim:set ft=sh: + +install () +{ + MODULES="" + BINARIES="" + FILES="" + SCRIPT="sleep" +} + +help () +{ +cat <<HELPEOF + This hook causes the init process to interrupt + for a fixed time interval. The time in seconds + can be specified in the sleeptime= command line + parameter. The default is 5 seconds. +HELPEOF +} |