diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-03-20 01:08:48 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-03-20 01:12:34 +0100 |
commit | abbdac08738be00b7194edd91d5fc922c565c51c (patch) | |
tree | 0718262717aa1ab90a06d197880b95b8f63be345 /defaults/initrd.scripts | |
parent | genkernel: bump to v4.2.0 (diff) | |
download | genkernel-abbdac08738be00b7194edd91d5fc922c565c51c.tar.gz genkernel-abbdac08738be00b7194edd91d5fc922c565c51c.tar.bz2 genkernel-abbdac08738be00b7194edd91d5fc922c565c51c.zip |
initrd.scripts: setup_keymap(): check console only when dokeymap is set
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'defaults/initrd.scripts')
-rw-r--r-- | defaults/initrd.scripts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index ff956b0a..2bf736f1 100644 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -1444,15 +1444,15 @@ cmdline_hwopts() { } setup_keymap() { - local console=$(get_active_console) - if echo "${console}" | grep -qF 'ttyS' - then - warn_msg "Active console is ${console}; Skipping dokeymap ..." - return - fi - if [ "${DO_keymap}" ] then + local console=$(get_active_console) + if echo "${console}" | grep -qF 'ttyS' + then + warn_msg "Active console is ${console}; Skipping dokeymap ..." + return + fi + if [ ! -e /dev/vc/0 -a ! -e /dev/tty0 ] then DEVBIND=1 |