diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-04-09 03:03:27 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-04-09 03:03:27 +0200 |
commit | e44bc987c14a904b371718f9c1562135fc02c966 (patch) | |
tree | 425c80df15f2e3c0ecd3398808b81a8354c9b6ab /hooks/sleep | |
parent | 9c1fd3318a40ccb70797305fc91926f380887f99 (diff) | |
download | mkinitcpio-e44bc987c14a904b371718f9c1562135fc02c966.tar.gz mkinitcpio-e44bc987c14a904b371718f9c1562135fc02c966.tar.xz |
hooks: use consistent shebang, modeline, function style
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'hooks/sleep')
-rw-r--r-- | hooks/sleep | 8 |
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: |