summaryrefslogtreecommitdiff
path: root/scripts/init-top/keymap
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2019-02-03 23:40:11 +0100
committerBen Hutchings <ben@decadent.org.uk>2019-02-04 03:16:37 +0100
commit79f49b96ba98bc23e5d3280b39b7979e9495d8c3 (patch)
tree9e27953d4cdf7d45e1b643629ce91d7773e9990e /scripts/init-top/keymap
parent4807ede18d8839ef321502a17919f72f4ce61ed0 (diff)
{hooks,scripts}/keymap: Use setupcon --setup-dir
setupcon gained a --setup-dir option to support initramfs builders, documented since console-setup 1.111. Use this to simplify our own scripts. Related-to: #620041 Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'scripts/init-top/keymap')
-rwxr-xr-xscripts/init-top/keymap14
1 files changed, 2 insertions, 12 deletions
diff --git a/scripts/init-top/keymap b/scripts/init-top/keymap
index 10507fd..1c6b2dc 100755
--- a/scripts/init-top/keymap
+++ b/scripts/init-top/keymap
@@ -13,16 +13,6 @@ prereqs)
;;
esac
-OPTS="-q"
-
-# Should terminal be in UTF8 mode?
-if [ -x /bin/kbd_mode ]; then
- /bin/kbd_mode -u
- OPTS="${OPTS} -u"
-fi
-
-# Load custom keymap
-if [ -x /bin/loadkeys ] && [ -r /etc/boottime.kmap.gz ]; then
- # shellcheck disable=SC2086
- loadkeys ${OPTS} /etc/boottime.kmap.gz
+if [ -x /bin/setupcon ]; then
+ /bin/setupcon
fi