diff options
-rw-r--r-- | hooks/consolefont | 9 | ||||
-rw-r--r-- | hooks/keymap | 8 | ||||
-rw-r--r-- | hooks/sleep | 8 |
3 files changed, 15 insertions, 10 deletions
diff --git a/hooks/consolefont b/hooks/consolefont index 07cbd71..118a10d 100644 --- a/hooks/consolefont +++ b/hooks/consolefont @@ -1,12 +1,11 @@ -# vim: set ft=sh: +#!/usr/bin/ash -run_hook () -{ +run_hook() { if [ -e /consolefont.psfu ]; then msg -n ":: Loading console font..." setfont -C /dev/console /consolefont.psfu msg "done." - elif [ -e /consolefont.psf ]; then + elif [ -e /consolefont.psf ]; then msg -n ":: Loading console font..." setfont -C /dev/console /consolefont.psf msg "done." @@ -14,3 +13,5 @@ run_hook () msg "No consolefont found despite added hook." fi } + +# vim: set ft=sh ts=4 sw=4 et: diff --git a/hooks/keymap b/hooks/keymap index afdb628..a5ae9d0 100644 --- a/hooks/keymap +++ b/hooks/keymap @@ -1,6 +1,6 @@ -# vim: set ft=sh: -run_hook () -{ +#!/usr/bin/ash + +run_hook() { if [ -e /keymap.bin ]; then msg -n ":: Loading keymap..." if [ -f /keymap.utf8 ]; then @@ -16,3 +16,5 @@ run_hook () msg "done." fi } + +# vim: set ft=sh ts=4 sw=4 et: 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: |