Set keymap automatically based on host system

This commit is contained in:
Krizsán Péter 2024-10-26 11:16:40 +02:00
parent d48579d874
commit c01e356b07
2 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,7 @@ DNS2="8.8.8.8"
# Console configuration
#
FONT="lat2-16"
KEYMAP="us"
KEYMAP="xxx"
# LOCAL is not set
# end of Console configuration
# end of System configuration

View File

@ -133,6 +133,7 @@ FILE_CFG="$DIR_SETUP/configuration"
sed -i -E "\@BUILDDIR=\"xxx\"@s@xxx@$1@g" "$FILE_CFG"
sed -i -E "\@FSTAB=\"xxx\"@s@xxx@/home/$U/fstab@g" "$FILE_CFG"
sed -i -E "\@CONFIG=\"xxx\"@s@xxx@/home/$U/config-$LATEST_KERNEL_VER@g" "$FILE_CFG"
sed -i -E "\@KEYMAP=\"xxx\"@s@xxx@$(localectl | grep Keymap | awk -F' ' '{printf $NF}')@g" "$FILE_CFG"
# Enter to setup folder and start installer
cd "$DIR_SETUP"