initramfs-tools: fix KEYMAP and use loadkmap/kbd_mode from busybox.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user