From nobody@FreeBSD.org  Mon Feb  5 00:54:17 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 0044A37B6A7
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  5 Feb 2001 00:54:17 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f158sGp59301;
	Mon, 5 Feb 2001 00:54:16 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200102050854.f158sGp59301@freefall.freebsd.org>
Date: Mon, 5 Feb 2001 00:54:16 -0800 (PST)
From: Jens.Schweikhardt@marconi.com
To: freebsd-gnats-submit@FreeBSD.org
Subject: WITH FIX: /etc/rc.isdn overwrites $isdn_ttype even when explicitly set in rc.conf
X-Send-Pr-Version: www-1.0

>Number:         24865
>Category:       conf
>Synopsis:       WITH FIX: /etc/rc.isdn overwrites $isdn_ttype even when explicitly set in rc.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    schweikh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 05 01:00:01 PST 2001
>Closed-Date:    Tue Apr 24 13:03:01 PDT 2001
>Last-Modified:  Tue Apr 24 13:03:41 PDT 2001
>Originator:     Jens Schweikhardt
>Release:        4.1-R
>Organization:
Marconi
>Environment:
>Description:
/etc/rc.isdn says:
...
    # Terminal type for fullscreen mode, default to syscons driver
    #
    isdn_ttype=cons25

This overwrites any assignment in rc.conf or rc.conf.local.
The result is that your isdnd always thinks it's running on
a cons25, no matter what the actual terminal type is (e.g.
I use cons30l1. The mismatch in terminal type leads to curses
messing up corners drawn by box()).
>How-To-Repeat:
in /etc/rc.conf say
isdn_ttype=cons30l1
isdn_fsdev=/dev/ttyv4

run /etc/rc.isdn
ps axlww|grep isdnd
-> isdnd ... -t cons25
>Fix:

Fix the assignment in /etc/rc.isdn to read

	isdn_ttype=${isdn_ttype:=cons25}

A similar solution should be used for 'isdn_ttype=pcvt25' a few
lines below.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->schweikh 
Responsible-Changed-By: schweikh 
Responsible-Changed-When: Sat Apr 21 12:05:53 PDT 2001 
Responsible-Changed-Why:  
hm says I can go for it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24865 
State-Changed-From-To: open->closed 
State-Changed-By: schweikh 
State-Changed-When: Tue Apr 24 13:03:01 PDT 2001 
State-Changed-Why:  
Fixed in -current. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=24865 
>Unformatted:
