diff -Nru mkinitcpio-0.5.99.5/hooks/consolefont mkinitcpio-0.5.99.5-patched/hooks/consolefont --- mkinitcpio-0.5.99.5/hooks/consolefont 1970-01-01 01:00:00.000000000 +0100 +++ mkinitcpio-0.5.99.5-patched/hooks/consolefont 2010-02-10 23:13:12.214147127 +0100 @@ -0,0 +1,10 @@ +# vim: set ft=sh: + +run_hook () +{ + if [ -e /consolefont.psfu ]; then + msg -n ":: Loading console font..." + /usr/sbin/setfont -C /dev/console /consolefont.psfu + msg "done." + fi +} diff -Nru mkinitcpio-0.5.99.5/install/consolefont mkinitcpio-0.5.99.5-patched/install/consolefont --- mkinitcpio-0.5.99.5/install/consolefont 1970-01-01 01:00:00.000000000 +0100 +++ mkinitcpio-0.5.99.5-patched/install/consolefont 2010-02-10 23:13:29.767477853 +0100 @@ -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<