From nobody@FreeBSD.ORG  Sat Jul 29 15:55:26 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 2B72737B8A1; Sat, 29 Jul 2000 15:55:26 -0700 (PDT)
Message-Id: <20000729225526.2B72737B8A1@hub.freebsd.org>
Date: Sat, 29 Jul 2000 15:55:26 -0700 (PDT)
From: marc@tear.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: MAKEDEV does not create RocketPort devices
X-Send-Pr-Version: www-1.0

>Number:         20292
>Category:       misc
>Synopsis:       MAKEDEV does not create RocketPort devices
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 29 16:00:01 PDT 2000
>Closed-Date:    Mon Jul 31 02:26:38 PDT 2000
>Last-Modified:  Mon Jul 31 02:27:29 PDT 2000
>Originator:     Marc Mosko
>Release:        4.0-RELEASE
>Organization:
>Environment:
FreeBSD farpoint.tear.com 4.0-RELEASE FreeBSD 4.0-RELEASE #0: 
Sun Jul 30 15:25:10 PDT 2000     
root@farpoint.tear.com:/usr/src/sys/compile/MARC2  i386
>Description:
after installing a RocketPort PCI card (8 port) and recompiling
the kernel with "device rp0", I tried adding the "cuaR" devices
with /dev/MAKEDEV cuaR0.  This did nothing.  It failed to detect
the controler.

The shell script MAKEDEV used the syntax "\$first" in several
places.  The escape character is the problem.  I edited the
script and removed the \ from 8 locations.  That fixed the problem.

I have not checked to see if this is a problem elsewhere in the
script.

>How-To-Repeat:
Add RocketPort card
Recompile kernel with "rp0"
run /dev/MAKEDEV cuaR0

>Fix:
diff MAKEDEV MAKEDEV.org

1192c1192
< 			case "$first" in
---
> 			case "\$first" in
1194c1194
< 				echo "$first"
---
> 				echo "\$first"
1203c1203
< 			case "$first" in
---
> 			case "\$first" in
1205c1205
< 				echo "$ports"
---
> 				echo "\$ports"
1232c1232
< 			case "$first" in
---
> 			case "\$first" in
1234c1234
< 				echo "$first"
---
> 				echo "\$first"
1243c1243
< 			case "$first" in
---
> 			case "\$first" in
1245c1245
< 				echo "$ports"
---
> 				echo "\$ports"


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Mon Jul 31 02:26:38 PDT 2000 
State-Changed-Why:  
This was fixed in rev 1.243.2.7 on 2000-06-11. 

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