sysconfig -> rc.conf

PR:		3461
Submitted by:	"Donald J. Maddox" <root@cola97.scsn.net>
This commit is contained in:
Jordan K. Hubbard 1997-05-19 07:30:45 +00:00
parent 1be44fa424
commit 08aa3c9084
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25914
2 changed files with 10 additions and 10 deletions

View File

@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $Id$
.\" $Id: kbdmap.1,v 1.10 1997/02/22 16:06:01 peter Exp $
.Dd Mar 25, 1995
.Dt KBDMAP 1
@ -84,7 +84,7 @@ Print description of available keymaps or fonts
to stdout and exit.
.It Fl r , Fl restore
Load default font from
.Pa /etc/sysconfig .
.Pa /etc/rc.conf .
.It Fl s , Fl show
Show currently supported languages and exit.
.It Fl v , Fl verbose
@ -99,7 +99,7 @@ Prefered language.
Database for keymaps.
.It Pa /usr/share/syscons/fonts/INDEX.fonts
Database for fonts.
.It Pa /etc/sysconfig
.It Pa /etc/rc.conf
Default font.
.It Pa /usr/X11/lib/X11/locale/locale.alias
Describe common LANG values.
@ -117,7 +117,7 @@ work only on a (virtual) console and not with X11.
.Xr dialog 1 ,
.Xr kbdcontrol 1 ,
.Xr vidcontrol 1 ,
.Xr sysconfig 5
.Xr rc.conf 5
.Sh HISTORY
The
.Nm kbdmap

View File

@ -26,7 +26,7 @@
#
# kbdmap/vidfont - front end for syscons
#
# $Id$
# $Id: kbdmap.pl,v 1.6 1997/02/22 16:06:02 peter Exp $
# simple test if syscons works
@ -44,13 +44,13 @@ sub variables_static {
$program = $0; $program =~ s|.*/||; $program =~ s/\.(pl|perl)$//;
$keymapdir = "/usr/share/syscons/keymaps";
$fontdir = "/usr/share/syscons/fonts";
$sysconfig = "/etc/sysconfig";
$sysconfig = "/etc/rc.conf";
# for test only
#$keymapdir = "/tmp/kbdmap/syscons/keymaps";
#$fontdir = "/tmp/kbdmap/syscons/fonts";
# read current font from sysconfig
# read current font from rc.conf
$font_default = "cp437-8x16.fnt";
$font_current = &font_current($font_default);
@ -239,16 +239,16 @@ sub dialog {
-1 -1 10";
## *always* start right font, don't believe that your current font
## is equal with default font in /etc/sysconfig
## 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/sysconfig
# 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/sysconfig
# $font_current is the current font from /etc/rc.conf
if ($font && $font ne $font_current) {
&vidcontrol($font);
}