[comp.unix.aux] Bug Fix to /etc/getty

paul@taniwha.UUCP (Paul Campbell) (06/01/89)

A number of people have reported problems trying to get incoming serial
lines to autobaud under A/UX. The problem seems to be that the A/UX
/etc/getty does NOT respond to incoming line breaks, parity errors
and most importantly framing errors (all these ought to cause it to
switch speeds). [Another example of this problem can be seen if you set
PARMRK in the 'initial-flags' field in /etc/gettydefs and then run
'/etc/getty -c' - some flags seem to be cleared unconditionally].

What follows is a simple patch to fix the worst of this problem, the
patch works for (and applies ONLY to) A/UX 1.0 and 1.1, it may NOT
work for future A/UX releases. Since it is a 3rd party patch to Apple
software it is not waranteed by anyone (on the other hand it does make
things work :-).

To make the patch do as follows while logged on as root:

	mv /etc/getty /etc/getty.old		# backup /etc/getty
	cp /etc/getty.old /etc/getty		# [works even if getty running]

	adb -w /etc/getty
	10c0?x					# should print '0x100'
						# if not STOP HERE!!
	?w 0x108				# make the patch
	^D

	vi /etc/gettydefs

	    then change lines like

		co_9600# B9600 # B9600 SANE2 TAB3 # ~MODEM ~DTR ~FLOW
			#\r\n\nMy System\r\n\nlogin: #co_4800

	    to

		co_9600# B9600 PARMRK # B9600 SANE2 TAB3 # ~MODEM ~DTR ~FLOW
			#\r\n\nMy System\r\n\nlogin: #co_4800


	Finally kill off all your gettys so that they restart with the
	new /etc/getty.


You can also make this patch to a copy of /etc/getty and try it on a
single line if you want to test it without letting it loose on your system

Of course this patch works on SuperMac CommCards (<- plug).

I hope this helps anyone having problems in this area. My thanks to
Malcom Duncan for reporting this bringing this problem to my attention
and testing the fix.


	Paul Campbell

-- 
Paul Campbell
Taniwha Systems Design			UUCP:		..!mtxinu!taniwha!paul 
Oakland CA				AppleLink:	D3213
Achtung! Ve are from ze Interface Police! Ve vant to look und feel!