Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 May 1997 18:27:45 -0400 (EDT)
From:      "Donald J. Maddox" <root@cola97.scsn.net>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/3461: src/usr.sbin/kbdmap references nonexistant /etc/sysconfig
Message-ID:  <199705012227.SAA01016@cola97.scsn.net>
Resent-Message-ID: <199705012230.PAA21611@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         3461
>Category:       bin
>Synopsis:       src/usr.sbin/kbdmap references nonexistant /etc/sysconfig
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May  1 15:30:01 PDT 1997
>Last-Modified:
>Originator:     Donald J. Maddox
>Organization:
>Release:        FreeBSD 3.0-CURRENT i386
>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);
      }
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705012227.SAA01016>