Bug 18400

Summary: path /dev/MAKEDEV lacks /usr/bin, causing cuaA/ttyA make to
Product: Base System Reporter: wkb <wkb>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description wkb 2000-05-05 19:10:01 UTC
        MAKEDEV cuaA# or ttyaA fails due to the script not finding
	'cut' which is used for making the Specialix device nodes
	cuaA / ttyaA

Fix: 

Add /usr/bin to the PATH as set in the top of /dev/MAKEDEV
How-To-Repeat: 
        see description
Comment 1 peter 2000-05-05 22:10:11 UTC
wkb@chello.nl wrote:
> >Synopsis:       path /dev/MAKEDEV lacks /usr/bin, causing cuaA/ttyA make to
>
>         MAKEDEV cuaA# or ttyaA fails due to the script not finding
> 	'cut' which is used for making the Specialix device nodes
> 	cuaA / ttyaA

Please test this out for me:

Index: MAKEDEV
===================================================================
RCS file: /home/ncvs/src/etc/MAKEDEV,v
retrieving revision 1.248
diff -u -r1.248 MAKEDEV
--- MAKEDEV	2000/05/01 10:43:06	1.248
+++ MAKEDEV	2000/05/05 21:09:08
@@ -1075,7 +1075,7 @@
 	port=1
 	while [ $port -le $nports ]; do
 		minor=`expr $port - 1`
-		name=`expr $port + 1000 | cut -c 3-4`
+		name=$(expr $port + 1000 | dd bs=1 skip=2 count=2 2>/dev/null)
 		mknod ttyA$name c $major $minor
 		mknod ttyiA$name c $major `expr $minor + 65536`
 		mknod ttylA$name c $major `expr $minor + 131072`


Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5
Comment 2 wkb 2000-05-06 10:06:31 UTC
On Fri, May 05, 2000 at 02:10:11PM -0700, Peter Wemm wrote:
> wkb@chello.nl wrote:
> > >Synopsis:       path /dev/MAKEDEV lacks /usr/bin, causing cuaA/ttyA make to
> >
> >         MAKEDEV cuaA# or ttyaA fails due to the script not finding
> > 	'cut' which is used for making the Specialix device nodes
> > 	cuaA / ttyaA
> 
> Please test this out for me:
> 
> Index: MAKEDEV
> ===================================================================
> RCS file: /home/ncvs/src/etc/MAKEDEV,v
> retrieving revision 1.248
> diff -u -r1.248 MAKEDEV
> --- MAKEDEV	2000/05/01 10:43:06	1.248
> +++ MAKEDEV	2000/05/05 21:09:08
> @@ -1075,7 +1075,7 @@
>  	port=1
>  	while [ $port -le $nports ]; do
>  		minor=`expr $port - 1`
> -		name=`expr $port + 1000 | cut -c 3-4`
> +		name=$(expr $port + 1000 | dd bs=1 skip=2 count=2 2>/dev/null)
>  		mknod ttyA$name c $major $minor
>  		mknod ttyiA$name c $major `expr $minor + 65536`
>  		mknod ttylA$name c $major `expr $minor + 131072`
> 

Works OK, but please also use this in the cuaA*) target, the dialout
nodes for the Specialix. Lives just below the ttyA entry.

Thanks,
W/
-- 
Wilko Bulte 		Powered by FreeBSD  	http://www.freebsd.org
						http://www.tcja.nl
Comment 3 nrahlstr freebsd_committer freebsd_triage 2000-06-13 01:31:01 UTC
State Changed
From-To: open->closed

This was fixed by peter in revision 1.251 of etc/MAKEDEV.