Mercurial > vanilla
changeset 560:2f46816f1cd6
core/etc: enable font/keymap loading
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 05 Jul 2019 21:09:00 +0200 |
parents | d6be16d7c5de |
children | 6e17e9e1ec3b |
files | core/etc/rc.conf core/etc/rc.init |
diffstat | 2 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/etc/rc.conf Fri Jul 05 21:05:00 2019 +0200 +++ b/core/etc/rc.conf Fri Jul 05 21:09:00 2019 +0200 @@ -10,3 +10,7 @@ # Services to start at boot. SERVICES="" + +# Console font and keymap +FONT="" +KEYMAP=""
--- a/core/etc/rc.init Fri Jul 05 21:05:00 2019 +0200 +++ b/core/etc/rc.init Fri Jul 05 21:09:00 2019 +0200 @@ -99,6 +99,11 @@ /bin/mount -o remount,rw / /bin/swapon -a +# Update shared library caches. +if [ -x /bin/ldconfig ]; then + /bin/ldconfig +fi + if [ -n "$TIMEZONE" ]; then echo -n "Setting timezone: " @@ -110,5 +115,16 @@ fi fi +# Console font and keymap. +if [ -n "$FONT" ] && [ -x /bin/setfont ]; then + echo "Setting font: $FONT" + /bin/setfont $FONT +fi + +if [ -n "$KEYMAP" ] && [ -x /bin/loadkeys ]; then + echo "Setting keymap: $KEYMAP" + /bin/loadkeys $KEYMAP +fi + # Cleanup some files. rm -f /etc/forcefsck