initramfs-tools: fix KEYMAP and use loadkmap/kbd_mode from busybox.

This commit is contained in:
Juan RP
2011-10-12 21:22:25 +02:00
parent cd0172f2bc
commit a5b99f522c
3 changed files with 10 additions and 37 deletions

View File

@@ -13,15 +13,12 @@ prereqs)
;;
esac
OPTS="-q"
# Should terminal be in UTF8 mode?
if [ -x /sbin/kbd_mode ]; then
/sbin/kbd_mode -u
OPTS="${OPTS} -u"
if [ -x /bin/kbd_mode ]; then
/bin/kbd_mode -u -C /dev/console
fi
# Load custom keymap
if [ -x /sbin/loadkeys -a -r /etc/boottime.kmap.gz ]; then
loadkeys ${OPTS} /etc/boottime.kmap.gz
if [ -x /bin/loadkmap -a -r /etc/bkeymap ]; then
/bin/loadkmap < /etc/bkeymap
fi