Re: vidcontrol(1) complains about Bad magic, in base/head, amd64, sc console, r268165

From: Trond Endrestøl <Trond.Endrestol_at_fagskolen.gjovik.no>
Date: Thu, 3 Jul 2014 08:21:37 +0200 (CEST)
On Wed, 2 Jul 2014 17:37-0400, Ed Maste wrote:

> On 2 July 2014 17:09, Trond Endrestøl
> <Trond.Endrestol_at_fagskolen.gjovik.no> wrote:
> > On Wed, 2 Jul 2014 16:43-0400, Ed Maste wrote:
> >
> >> On 2 July 2014 14:51, Trond Endrestøl
> >> <Trond.Endrestol_at_fagskolen.gjovik.no> wrote:
> >> > Hi,
> >> >
> >> > Is it just me or is there something wrong with vidcontrol(1) in
> >> > base/head, amd64, sc console, r268165?
> >>
> >> Should be fixed in r268175.
> >
> > Looks good, thanks.
> 
> Thanks for the report, and sorry for the trouble.

No trouble at all, I follow base/head (and stable/{8,9,10}) on various 
VMs at home only to know what's ahead. ;-)

Since neither kbdcontrol(1) nor I mind using the old syscons keymap
file norwegian.iso.kbd, wouldn't it be nice if kbdcontrol(1), while in
vt(4) mode, would search for keymaps in /usr/share/syscons/keymaps
after searching for them in /usr/share/vt/keymaps?

E.g.:

Index: usr.sbin/kbdcontrol/kbdcontrol.c
===================================================================
--- usr.sbin/kbdcontrol/kbdcontrol.c    (revision 268203)
+++ usr.sbin/kbdcontrol/kbdcontrol.c    (working copy)
_at__at_ -804,7 +804,7 _at__at_
        char    *postfix[] = {blank, dotkbd, NULL};

        if (is_vt4())
-               prefix[2] = vt_keymap_path;
+               prefix[1] = vt_keymap_path;
        cp = getenv("KEYMAP_PATH");
        if (cp != NULL)
                asprintf(&(prefix[0]), "%s/", cp);

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
Received on Thu Jul 03 2014 - 04:21:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:50 UTC