blob: 26bda60408e0f7c2aff287c559c2523af5292b82 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#!/bin/sh
2#
3# load keymap, if existing
Patrick Williams45852732022-04-02 08:58:32 -05004#
5# SPDX-License-Identifier: GPL-2.0-only
6#
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007
8KERNEL_MAJMIN=`uname -r | cut -d '.' -f 1,2`
9if [ -e /etc/keymap-$KERNEL_MAJMIN.map ]; then
10 loadkeys /etc/keymap-$KERNEL_MAJMIN.map
11fi
12
13if ( ls "/etc" | grep -q "keymap-extension-${KERNEL_MAJMIN}" )
14then
15 for extension in `ls -1 /etc/keymap-extension-$KERNEL_MAJMIN*`
16 do
17 loadkeys "$extension"
18 done
19fi