--- /lib/initcpio/install/consolefont-old 2010-02-21 22:57:22.000000000 +0100 +++ /lib/initcpio/install/consolefont 2010-05-04 14:11:50.291100510 +0200 @@ -8,14 +8,19 @@ SCRIPT="consolefont" eval "$(grep -e "^CONSOLEFONT=" /etc/rc.conf)" if [ -n "$CONSOLEFONT" ]; then - CONSOLEFONT_FILE_GZ="/usr/share/kbd/consolefonts/$CONSOLEFONT.psfu.gz" - if [ -e ${CONSOLEFONT_FILE_GZ} ]; then + if [ -e /usr/share/kbd/consolefonts/$CONSOLEFONT.psfu.gz ]; then + CONSOLEFONT_FILE_GZ="/usr/share/kbd/consolefonts/$CONSOLEFONT.psfu.gz" CONSOLEFONT_FILE="$(mktemp ${TMPDIR}/consolefont.psfu.XXXXXX)" zcat ${CONSOLEFONT_FILE_GZ} > ${CONSOLEFONT_FILE} add_file ${CONSOLEFONT_FILE} /consolefont.psfu + elif [ -e /usr/share/kbd/consolefonts/$CONSOLEFONT.psf.gz ]; then + CONSOLEFONT_FILE_GZ="/usr/share/kbd/consolefonts/$CONSOLEFONT.psf.gz" + CONSOLEFONT_FILE="$(mktemp ${TMPDIR}/consolefont.psf.XXXXXX)" + zcat ${CONSOLEFONT_FILE_GZ} > ${CONSOLEFONT_FILE} + add_file ${CONSOLEFONT_FILE} /consolefont.psf + add_file /usr/bin/setfont /bin/setconsolefont else - echo "consolefont: Font file does not exist or does not end with .psfu.gz" - echo "consolefont: Only unicode fonts are supported at the moment." + echo "consolefont: Font file does not exist or does not end with .psf.gz or .psfu.gz." fi fi }