aboutsummaryrefslogtreecommitdiff
path: root/init.d.Linux/consolefont
diff options
context:
space:
mode:
Diffstat (limited to 'init.d.Linux/consolefont')
-rwxr-xr-xinit.d.Linux/consolefont12
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 :