Files
webgui/etc/rc.d/rc.keymap
ich777 2cb6e86f93 - Create page for Local Console
- Create console script
- Create rc.keymap and modify default ot be compatible with local console settings
- Change rc.setterm to be compatible with local console settings
- Change rc.local to be compatible with persistent bash history
2023-11-13 19:42:44 +01:00

10 lines
335 B
Bash
Executable File

#!/bin/bash
#
# Load a keyboard map. More maps are in /usr/share/kbd/keymaps.
# Read Unraid config file and set kayboard layout if found.
KBD_LAYOUT=$(grep "keyboard_layout" /boot/config/plugins/dynamix/dynamix.cfg 2>/dev/null | cut -d'=' -f2 | sed 's/"//g')
if [[ ! -z $KBD_LAYOUT ]]; then
loadkeys $KBD_LAYOUT >/dev/null 2>&1
fi