summaryrefslogtreecommitdiffstats
path: root/hooks/sleep
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/sleep')
-rw-r--r--hooks/sleep8
1 files changed, 5 insertions, 3 deletions
diff --git a/hooks/sleep b/hooks/sleep
index 50f3db3..72fc503 100644
--- a/hooks/sleep
+++ b/hooks/sleep
@@ -1,6 +1,6 @@
-# vim:set ft=sh:
-run_hook ()
-{
+#!/usr/bin/ash
+
+run_hook() {
if [ -z "${sleeptime}" ] || ! [ "${sleeptime}" -gt 0 ]; then
sleeptime=5
fi
@@ -11,3 +11,5 @@ run_hook ()
sleep ${sleeptime}
fi
}
+
+# vim: set ft=sh ts=4 sw=4 et: