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