diff options
author | Eric Hameleers <alien@slackware.com> | 2015-12-07 17:29:46 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2015-12-07 17:29:46 +0100 |
commit | 95cd89396345c644e26cf69ab83a01a7f3ca5b8f (patch) | |
tree | 5004151a7cfecdc3abf5bee2e787e4202a692589 | |
parent | d7520e386e930d5e472c3fea151c020b25aecc71 (diff) | |
download | liveslak-95cd89396345c644e26cf69ab83a01a7f3ca5b8f.tar.gz liveslak-95cd89396345c644e26cf69ab83a01a7f3ca5b8f.tar.xz |
Use terminus font 'ter-i16v.psf' as the syslinux console font.
Patch proposed by Didier Spaier.
Diffstat (limited to '')
-rwxr-xr-x | make_slackware_live.sh | 16 | ||||
-rw-r--r-- | menu.tpl | 1 |
2 files changed, 14 insertions, 3 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh index ad33ab6..3f902b2 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -1,6 +1,6 @@ #!/bin/bash -# $Id: make_slackware_live.sh,v 1.12 2015/12/04 13:19:46 root Exp root $ +# $Id: make_slackware_live.sh,v 1.13 2015/12/04 13:51:41 root Exp root $ # Copyright 2014, 2015 Eric Hameleers, Eindhoven, NL # All rights reserved. # @@ -70,6 +70,9 @@ RUNLEVEL=${RUNLEVEL:-4} # Use the graphical syslinux menu (YES or NO)? SYSMENU=${SYSMENU:-"YES"} +# Console font to use with syslinux for better language support: +CONSFONT=${CONSFONT:-"ter-i16v.psf"} + # This variable can be set to a comma-separated list of package series. # The squashfs module(s) for these package series will then be re-generated. # Example commandline parameter: "-r l,kde,kdei" @@ -306,6 +309,7 @@ function gen_bootmenu() { cat ${LIVE_TOOLDIR}/menu.tpl | sed \ -e "s/@KBD@/us/g" \ -e "s/@LANG@/us/g" \ + -e "s/@CONSFONT@/$CONSFONT/g" \ -e "s/@DIRSUFFIX@/$DIRSUFFIX/g" \ -e "s/@KVER@/$KVER/g" \ -e "s/@LIVEMAIN@/$LIVEMAIN/g" \ @@ -336,6 +340,7 @@ EOL cat ${LIVE_TOOLDIR}/menu.tpl | sed \ -e "s/@KBD@/$KBD/g" \ -e "s/@LANG@/$LANCOD/g" \ + -e "s/@CONSFONT@/$CONSFONT/g" \ -e "s/@DIRSUFFIX@/$DIRSUFFIX/g" \ -e "s/@KVER@/$KVER/g" \ -e "s/@LIVEMAIN@/$LIVEMAIN/g" \ @@ -406,7 +411,7 @@ do case $Option in h ) cat <<-"EOH" ----------------------------------------------------------------- - $Id: make_slackware_live.sh,v 1.12 2015/12/04 13:19:46 root Exp root $ + $Id: make_slackware_live.sh,v 1.13 2015/12/04 13:51:41 root Exp root $ ----------------------------------------------------------------- EOH echo "Usage:" @@ -1165,7 +1170,12 @@ mkdir -p ${LIVE_STAGING}/boot cp -a ${LIVE_BOOT}/boot/vmlinuz-generic-$KVER ${LIVE_STAGING}/boot/generic cp -a ${LIVE_BOOT}/boot/initrd_${KVER}.gz ${LIVE_STAGING}/boot/initrd.img cp -a ${LIVE_TOOLDIR}/syslinux ${LIVE_STAGING}/boot/ -rm -rf ${LIVE_STAGING}/boot/RCS +# Make use of proper console font if we have it available: +if [ -f /usr/share/kbd/consolefonts/${CONSFONT}.gz ]; then + gunzip -cd /usr/share/kbd/consolefonts/${CONSFONT}.gz > ${LIVE_STAGING}/boot/syslinux/${CONSFONT} +elif [ ! -f ${LIVE_STAGING}/boot/syslinux/${CONSFONT} ]; then + sed -i -e "s/^font .*/#&/" ${LIVE_STAGING}/boot/syslinux/menu/*menu*.cfg +fi # Copy the UEFI boot directory structure: cp -a ${LIVE_TOOLDIR}/EFI ${LIVE_STAGING}/ @@ -3,6 +3,7 @@ timeout 300 ui vesamenu.c32 default live f2 f2.txt +font @CONSFONT@ menu background swlogov.png menu title Slackware@DIRSUFFIX@-@SL_VERSION@ Live |