diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-12-17 23:07:15 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-12-17 23:07:15 +0000 |
commit | 5e3e87a67ddef9ba82f4e0fd4c2bd70fb4aa5d9f (patch) | |
tree | 81fd0722b36fe75c2cfc858892a2442bf93b5dc4 /isys/lang.c | |
parent | 1c9a0ab4c85ab5d2f2820002dc82f9f1ac7ae047 (diff) | |
download | anaconda-5e3e87a67ddef9ba82f4e0fd4c2bd70fb4aa5d9f.tar.gz anaconda-5e3e87a67ddef9ba82f4e0fd4c2bd70fb4aa5d9f.tar.xz anaconda-5e3e87a67ddef9ba82f4e0fd4c2bd70fb4aa5d9f.zip |
only set the unicode keymap up once. if we do it while X is running,
Bad Things (tm) happen
Diffstat (limited to 'isys/lang.c')
-rw-r--r-- | isys/lang.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/isys/lang.c b/isys/lang.c index 3f95ca0af..7b00d6dde 100644 --- a/isys/lang.c +++ b/isys/lang.c @@ -52,6 +52,19 @@ int isysLoadFont(void) { return 0; } +int isysSetUnicodeKeymap(void) { + int console; + + console = open("/dev/console", O_RDWR); + if (console < 0) + return -EACCES; + + /* place keyboard in unicode mode */ + ioctl(console, KDSKBMODE, K_UNICODE); + close(console); + return 0; +} + /* the file pointer must be at the beginning of the section already! */ int loadKeymap(gzFile stream) { int console; @@ -74,9 +87,6 @@ int loadKeymap(gzFile stream) { if (console < 0) return -EACCES; - /* place keyboard in unicode mode */ - ioctl(console, KDSKBMODE, K_UNICODE); - for (kmap = 0; kmap < MAX_NR_KEYMAPS; kmap++) { if (!keymaps[kmap]) continue; |