From 6fdbf6edefb4371179783c2539d2f30c682bd155 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Wed, 10 Feb 2010 23:37:30 +0100 Subject: Add "consolefont" hook to set the console font early MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch provided by Davorin Učakar, currently only unicode fonts are supported --- install/consolefont | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 install/consolefont (limited to 'install') diff --git a/install/consolefont b/install/consolefont new file mode 100644 index 0000000..b39e3b0 --- /dev/null +++ b/install/consolefont @@ -0,0 +1,31 @@ +# vim: set ft=sh: + +install () +{ + MODULES="" + BINARIES="" + FILES="" + SCRIPT="consolefont" + if [ -n "$CONSOLEFONT" ]; then + CONSOLEFONT_FILE_GZ="/usr/share/kbd/consolefonts/$CONSOLEFONT.psfu.gz" + if [ -e ${CONSOLEFONT_FILE_GZ} ]; then + CONSOLEFONT_FILE="$(mktemp ${TMPDIR}/consolefont.psfu.XXXXXX)" + zcat ${CONSOLEFONT_FILE_GZ} > ${CONSOLEFONT_FILE} + add_file ${CONSOLEFONT_FILE} /consolefont.psfu + else + echo "consolefont hook: Console font file must end with .psfu.gz" + echo "consolefont hook: Only unicode fonts are supported at the moment." + fi + fi +} + +help () +{ +cat<