diff options
author | Roy Marples <roy@marples.name> | 2008-01-11 12:13:46 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-01-11 12:13:46 +0000 |
commit | 3bf49a9bd19d5bbcf6976dd42b4f87f1b173e287 (patch) | |
tree | 8b4d6121f0d4b921566eeec2844c9bf76131de78 /init.d.Linux/consolefont | |
parent | 1f4422c72f968405a0b8bf56d4f9c3b619b1b80d (diff) |
Adopt a more C style for scripts and remove vim settings.
Diffstat (limited to 'init.d.Linux/consolefont')
-rwxr-xr-x | init.d.Linux/consolefont | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/init.d.Linux/consolefont b/init.d.Linux/consolefont index abf50223..d65a4fd4 100755 --- a/init.d.Linux/consolefont +++ b/init.d.Linux/consolefont @@ -4,13 +4,15 @@ description="Sets a font for the consoles." -depend() { +depend() +{ need localmount need keymaps # sets up terminal encoding scheme after hotplug } -start() { +start() +{ # Forget about any font until we are successful rm -rf "${RC_LIBDIR}"/console @@ -66,7 +68,9 @@ start() { if [ ${retval} -eq 0 -a -w "${RC_LIBDIR}" ]; then mkdir -p "${RC_LIBDIR}"/console - for font in /usr/share/consolefonts/"${consolefont}".*; do :; done + for font in /usr/share/consolefonts/"${consolefont}".*; do + : + done cp "${font}" "${RC_LIBDIR}"/console echo "${font##*/}" > "${RC_LIBDIR}"/console/font if yesno ${unicode:-${UNICODE}}; then @@ -78,5 +82,3 @@ start() { return ${retval} } - -# vim: set ts=4 : |