diff options
-rw-r--r-- | src/console_init.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/console_init.c b/src/console_init.c index a41ec643..a3d93791 100644 --- a/src/console_init.c +++ b/src/console_init.c @@ -90,18 +90,23 @@ static void set_font(char *device) { int pid, status; if ( (pid = fork()) == 0) { - char *args[] = { "setfont", "latarcyrheb-sun16", "-m", "none", - "-u", "none", "-C", NULL, NULL }; + char *args[] = { "setfont", "latarcyrheb-sun16", "-C", NULL, + NULL, NULL, NULL, NULL, NULL }; if (font) args[1] = font; + args[3] = device; if (acm) { - args[3] = acm; - } - if (unimap) { + args[4] = "-m"; + args[5] = acm; + if (unimap) { + args[6] = "-u"; + args[7] = unimap; + } + } else if (unimap) { + args[4] = "-u"; args[5] = unimap; } - args[7] = device; execv("/bin/setfont", args); exit(1); } |