From 3bf49a9bd19d5bbcf6976dd42b4f87f1b173e287 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 11 Jan 2008 12:13:46 +0000 Subject: Adopt a more C style for scripts and remove vim settings. --- init.d.Linux/consolefont | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'init.d.Linux/consolefont') 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 : -- cgit v1.2.3