mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 17:20:04 -06:00
- 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
10 lines
335 B
Bash
Executable File
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
|