Subject: port-amiga/1396: updates for src/etc/etc.amiga
To: None <gnats-bugs@gnats.netbsd.org>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 08/21/1995 19:25:58
>Number:         1396
>Category:       port-amiga
>Synopsis:       updates for src/etc/etc.amiga
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 21 13:35:01 1995
>Last-Modified:
>Originator:     Bernd Ernesti
>Organization:
	
>Release:        NetBSD-current 20-Aug-95
>Environment:
	
System: NetBSD arresum 1.0A NetBSD 1.0A (VEEGO) #212: Mon Aug 21 09:50:20 MET DST 1995 bernd@arresum:/src/sys/arch/amiga/compile/VEEGO amiga


>Description:
1. vt200 is removed from the current termcap
2. the major number for the tun device is 23 and not 40
3. a ./MAKEDEV ttyA0 removes tty00
>How-To-Repeat:
>Fix:
Apply this diff:

*** etc/etc.amiga/ttys-orig	Sun Aug 20 08:45:37 1995
--- etc/etc.amiga/ttys	Sun Aug 20 23:57:16 1995
***************
*** 6,17 ****
  #
  # If the console is marked insecure, single-user requires
  # the root password.
! console	"/usr/libexec/getty Pc"		vt200	off secure 
! ttye0	"/usr/libexec/getty Pc"		vt200	on secure 	# custom chips
! ttye1	"/usr/libexec/getty Pc"		vt200	on secure 	# retina
! ttye2	"/usr/libexec/getty Pc"		vt200	on secure 	# retina
! ttye3	"/usr/libexec/getty Pc"		vt200	on secure 	# cirrus logic
! ttye4	"/usr/libexec/getty Pc"		vt200	on secure 	# a2410
  tty00	"/usr/libexec/getty std.9600"	unknown off secure	# int. serial.
  ttyp0	none			network
  ttyp1	none			network
--- 6,17 ----
  #
  # If the console is marked insecure, single-user requires
  # the root password.
! console	"/usr/libexec/getty Pc"		vt220	off secure 
! ttye0	"/usr/libexec/getty Pc"		vt220	on secure 	# custom chips
! ttye1	"/usr/libexec/getty Pc"		vt220	on secure 	# retina
! ttye2	"/usr/libexec/getty Pc"		vt220	on secure 	# retina
! ttye3	"/usr/libexec/getty Pc"		vt220	on secure 	# cirrus logic
! ttye4	"/usr/libexec/getty Pc"		vt220	on secure 	# a2410
  tty00	"/usr/libexec/getty std.9600"	unknown off secure	# int. serial.
  ttyp0	none			network
  ttyp1	none			network
*** etc/etc.amiga/MAKEDEV-orig	Sun Aug 20 08:45:37 1995
--- etc/etc.amiga/MAKEDEV	Mon Aug 21 18:44:36 1995
***************
*** 72,78 ****
  #	par*	motherboard parallel port
  #
  # Special purpose devices:
! #	grf*	custom chip (grf0) or Retina (grf1) video
  #	kbd	Amiga keyboard
  #	view*	generic interface to graphic displays.
  #	aconf	autoconfig information (not yet)
--- 72,79 ----
  #	par*	motherboard parallel port
  #
  # Special purpose devices:
! #	grf*	custom chip (grf0), Retina Z2/Z3 (grf1/grf2),
! #		Cirrus boards (grf3) or A2410 (grf4) video
  #	kbd	Amiga keyboard
  #	view*	generic interface to graphic displays.
  #	aconf	autoconfig information (not yet)
***************
*** 261,271 ****
  tty0*|ttyA*)
  	type=`expr $i : 'tty\(.\).'`
  	unit=`expr $i : 'tty.\(.\)'`
- 	rm -f ser${unit} tty0${unit} ttym${unit}
  	case $type in
  	0)	case $unit in
  		0)	
! 			rm -f tty0${unit} ttym${unit}
  			mknod tty0${unit} c 12 0
  			mknod ttym${unit} c 12 128
  			chown uucp:wheel tty0${unit} ttym${unit}
--- 262,271 ----
  tty0*|ttyA*)
  	type=`expr $i : 'tty\(.\).'`
  	unit=`expr $i : 'tty.\(.\)'`
  	case $type in
  	0)	case $unit in
  		0)	
! 			rm -f ser${unit} tty0${unit} ttym${unit}
  			mknod tty0${unit} c 12 0
  			mknod ttym${unit} c 12 128
  			chown uucp:wheel tty0${unit} ttym${unit}
***************
*** 406,412 ****
  tun*)
  	unit=`expr $i : 'tun\(.*\)'`
  	rm -f tun$unit
! 	mknod tun$unit c 40 $unit
  	chmod 600 tun$unit
  	chown root.wheel tun$unit
  	;;
--- 406,412 ----
  tun*)
  	unit=`expr $i : 'tun\(.*\)'`
  	rm -f tun$unit
! 	mknod tun$unit c 23 $unit
  	chmod 600 tun$unit
  	chown root.wheel tun$unit
  	;;
>Audit-Trail:
>Unformatted: