From root@cola97.scsn.net  Thu May  1 15:25:30 1997
Received: from rosie.scsn.net (scsn.net [206.25.246.12])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id PAA21409
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 1 May 1997 15:25:25 -0700 (PDT)
Received: from cola97.scsn.net ([206.25.247.97]) by rosie.scsn.net
          (Post.Office MTA v3.0 release 0121 ID# 0-32322U5000L100S10000)
          with ESMTP id AAA136 for <FreeBSD-gnats-submit@freebsd.org>;
          Thu, 1 May 1997 18:19:00 -0400
Received: (from root@localhost) by cola97.scsn.net (8.8.5/8.6.12) id SAA01016; Thu, 1 May 1997 18:27:45 -0400 (EDT)
Message-Id: <199705012227.SAA01016@cola97.scsn.net>
Date: Thu, 1 May 1997 18:27:45 -0400 (EDT)
From: "Donald J. Maddox" <root@cola97.scsn.net>
Reply-To: dmaddox@scsn.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: src/usr.sbin/kbdmap references nonexistant /etc/sysconfig
X-Send-Pr-Version: 3.2

>Number:         3461
>Category:       bin
>Synopsis:       src/usr.sbin/kbdmap references nonexistant /etc/sysconfig
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May  1 15:30:01 PDT 1997
>Closed-Date:    Mon May 19 00:31:28 PDT 1997
>Last-Modified:  Mon May 19 00:31:42 PDT 1997
>Originator:     Donald J. Maddox
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

FreeBSD cola97.scsn.net 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Tue Apr 29 23:45:34 EDT 1997     root@cola110.scsn.net:/usr/src/sys/compile/RHIANNON  i386

>Description:

    kbdmap/vidfont still references /etc/sysconfig.

>How-To-Repeat:

>Fix:

*** kbdmap.pl.orig	Thu May  1 18:16:46 1997
--- kbdmap.pl	Thu May  1 18:18:32 1997
***************
*** 44,56 ****
      $program = $0; $program =~ s|.*/||; $program =~ s/\.(pl|perl)$//;
      $keymapdir = "/usr/share/syscons/keymaps";
      $fontdir = "/usr/share/syscons/fonts";
!     $sysconfig = "/etc/sysconfig";
  
      # for test only
      #$keymapdir = "/tmp/kbdmap/syscons/keymaps";
      #$fontdir = "/tmp/kbdmap/syscons/fonts";
  
!     # read current font from sysconfig
      $font_default = "cp437-8x16.fnt";
      $font_current = &font_current($font_default);
  
--- 44,56 ----
      $program = $0; $program =~ s|.*/||; $program =~ s/\.(pl|perl)$//;
      $keymapdir = "/usr/share/syscons/keymaps";
      $fontdir = "/usr/share/syscons/fonts";
!     $sysconfig = "/etc/rc.conf";
  
      # for test only
      #$keymapdir = "/tmp/kbdmap/syscons/keymaps";
      #$fontdir = "/tmp/kbdmap/syscons/fonts";
  
!     # read current font from rc.conf
      $font_default = "cp437-8x16.fnt";
      $font_current = &font_current($font_default);
  
***************
*** 239,254 ****
  -1 -1 10";
  
      ## *always* start right font, don't believe that your current font
!     ## is equal with default font in /etc/sysconfig
      ## see also at end of this function
      ## if ($font) {
  
      # start right font, assume that current font is equal
!     # to default font in /etc/sysconfig
      #
      # $font is the font which require the language $lang; e.g.
      # russian *need* a koi8 font
!     # $font_current is the current font from /etc/sysconfig
      if ($font && $font ne $font_current) {
  	&vidcontrol($font);
      }
--- 239,254 ----
  -1 -1 10";
  
      ## *always* start right font, don't believe that your current font
!     ## is equal with default font in /etc/rc.conf
      ## see also at end of this function
      ## if ($font) {
  
      # start right font, assume that current font is equal
!     # to default font in /etc/rc.conf
      #
      # $font is the font which require the language $lang; e.g.
      # russian *need* a koi8 font
!     # $font_current is the current font from /etc/rc.conf
      if ($font && $font ne $font_current) {
  	&vidcontrol($font);
      }
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Mon May 19 00:31:28 PDT 1997 
State-Changed-Why:  
Fixed, thanks! 
>Unformatted:
