Fallback to us keymap if it cannot be detected from the running system
This commit is contained in:
parent
e7172280a8
commit
49cbc77c17
|
@ -76,7 +76,7 @@ function get_timezone() {
|
||||||
|
|
||||||
function get_default_keymap() {
|
function get_default_keymap() {
|
||||||
local keymap
|
local keymap
|
||||||
keymap="$(grep KEYMAP /etc/vconsole.conf)"
|
keymap="$(grep KEYMAP /etc/vconsole.conf 2>/dev/null || echo "KEYMAP=us")"
|
||||||
keymap="${keymap#KEYMAP=}"
|
keymap="${keymap#KEYMAP=}"
|
||||||
|
|
||||||
local map
|
local map
|
||||||
|
|
Loading…
Reference in New Issue