Revert "Add check to switch VTs only between K_XLATE or K_UNICODE"
This reverts commit 13a43c73d8.
This commit is contained in:
@@ -1278,18 +1278,11 @@ int vt_verify_kbmode(int fd) {
|
||||
}
|
||||
|
||||
int vt_reset_keyboard(int fd) {
|
||||
int kb, r;
|
||||
int kb;
|
||||
|
||||
/* If we can't read the default, then default to unicode. It's 2017 after all. */
|
||||
kb = vt_default_utf8() != 0 ? K_UNICODE : K_XLATE;
|
||||
|
||||
r = vt_verify_kbmode(fd);
|
||||
if (r == -EBUSY) {
|
||||
log_debug_errno(r, "Keyboard is not in XLATE or UNICODE mode, not resetting: %m");
|
||||
return 0;
|
||||
} else if (r < 0)
|
||||
return r;
|
||||
|
||||
if (ioctl(fd, KDSKBMODE, kb) < 0)
|
||||
return -errno;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user