RE: IRIX -- how to get a serial device?
hi Shuibird,
here is inittab for Octane2:
>> # Copyright © 1984 AT&T
>> # All Rights Reserved
>> #
>> # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
>> # The copyright notice above does not evidence any
>> # actual or intended publication of such source code.
>>
>> #ident "$Revision: 1.72 $"
>>
>> is:2:initdefault:
>> fs::sysinit:/etc/bcheckrc </dev/console >/dev/console 2>&1
>> mt::sysinit:/etc/brc </dev/console >/dev/console 2>&1
>> link::wait:/etc/lnsyscon > /dev/console 2>&1 < /dev/null
>> s0:06s:wait:/etc/rc0 >/dev/console 2>&1 </dev/console
>> s1:1:wait:/sbin/suattr -C CAP_SHUTDOWN+ip -c "exec /etc/shutdown -y -iS -g0" >/dev/console 2>&1 </dev/console
>> s2:23:wait:/etc/rc2 >/dev/console 2>&1 </dev/console
>> s3:3:wait:/etc/rc3 >/dev/console 2>&1 </dev/console
>> s4:06:wait:/sbin/env LANG=C /etc/umountfs > /dev/console 2>&1
>> of:0:wait:/sbin/suattr -C CAP_SHUTDOWN+ip -c "exec /etc/uadmin 2 0" >/dev/console 2>&1 </dev/console
>> RB:6:wait:/etc/init.d/announce restart
>> rb:6:wait:/sbin/suattr -C CAP_SHUTDOWN+ip -c "exec /etc/uadmin 2 1" >/dev/console 2>&1 </dev/console
>>
>> #
>> # note that startgfx and stopgfx will manipulate the action
>> # on the following textport getty line. normal system usage
>> # does not involve either of these commands, so the action
>> # will not be changed and this file will not be modified.
>> # default behavior is "off" for cleaner system boot and
>> # to reduce the number of processes on the minimal system.
>> #
>> tp:23:off:/sbin/suattr -C CAP_FOWNER,CAP_DEVICE_MGT,CAP_DAC_WRITE+ip -c "exec /sbin/getty tport co_9600"
>> # textport
>>
>> #
>> # Use the ttym* or ttyf* device names and the du_* or dx_* gettydefs tags
>> # for ports with modems. See the getty(1M), uugetty(1M), init(1M),
>> # gettydefs(4), and inittab(4) man pages.
>> #
>> # on-board ports or on Challenge/Onyx MP machines, first IO4 board ports
>> t1:23:off:/sbin/suattr -C CAP_FOWNER,CAP_DEVICE_MGT,CAP_DAC_WRITE+ip -c "exec /sbin/getty ttyd1 console"
>> # alt console
>> t2:23:off:/sbin/suattr -C CAP_FOWNER,CAP_DEVICE_MGT,CAP_DAC_WRITE+ip -c "exec /sbin/getty -N ttyd2 co_9600"
>> # port 2
And here is for Fuel:
>> # Copyright © 1984 AT&T
>> # All Rights Reserved
>> #
>> # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
>> # The copyright notice above does not evidence any
>> # actual or intended publication of such source code.
>>
>> #ident "$Revision: 1.72 $"
>>
>> is:2:initdefault:
>> fs::sysinit:/etc/bcheckrc </dev/console >/dev/console 2>&1
>> mt::sysinit:/etc/brc </dev/console >/dev/console 2>&1
>> link::wait:/etc/lnsyscon > /dev/console 2>&1 < /dev/null
>> s0:06s:wait:/etc/rc0 >/dev/console 2>&1 </dev/console
>> s1:1:wait:/sbin/suattr -C CAP_SHUTDOWN+ip -c "exec /etc/shutdown -y -iS -g0" >/dev/console 2>&1 </dev/console
>> s2:23:wait:/etc/rc2 >/dev/console 2>&1 </dev/console
>> s3:3:wait:/etc/rc3 >/dev/console 2>&1 </dev/console
>> s4:06:wait:/sbin/env LANG=C /etc/umountfs > /dev/console 2>&1
>> of:0:wait:/sbin/suattr -C CAP_SHUTDOWN+ip -c "exec /etc/uadmin 2 0" >/dev/console 2>&1 </dev/console
>> RB:6:wait:/etc/init.d/announce restart
>> rb:6:wait:/sbin/suattr -C CAP_SHUTDOWN+ip -c "exec /etc/uadmin 2 1" >/dev/console 2>&1 </dev/console
>>
>> #
>> # note that startgfx and stopgfx will manipulate the action
>> # on the following textport getty line. normal system usage
>> # does not involve either of these commands, so the action
>> # will not be changed and this file will not be modified.
>> # default behavior is "off" for cleaner system boot and
>> # to reduce the number of processes on the minimal system.
>> #
>> tp:23:off:/sbin/suattr -C CAP_FOWNER,CAP_DEVICE_MGT,CAP_DAC_WRITE+ip -c "exec /sbin/getty tport co_9600"
>> # textport
>>
>> #
>> # Use the ttym* or ttyf* device names and the du_* or dx_* gettydefs tags
>> # for ports with modems. See the getty(1M), uugetty(1M), init(1M),
>> # gettydefs(4), and inittab(4) man pages.
>> #
>> # on-board ports or on Challenge/Onyx MP machines, first IO4 board ports
>> t1:23:respawn:/sbin/suattr -C CAP_FOWNER,CAP_DEVICE_MGT,CAP_DAC_WRITE+ip -c "exec /sbin/getty ttyd1 console"
>> # alt console
>> t2:23:off:/sbin/suattr -C CAP_FOWNER,CAP_DEVICE_MGT,CAP_DAC_WRITE+ip -c "exec /sbin/getty -N ttyd2 co_9600"
>> # port 2
I have modified both of these to stop com2 being used as terminal port so that I can use it for MIDI keyboard input. This also allows it to be used by cu (as per /etc/uucp/Devices config).
I have put all the earlier stuff up as well as it does a lot of stuff that puts output on "/dev/console".
The use of "console" in the ttyd1 config is deceptive as it is actually a config item in /etc/gettydefs (nothing to do with /dev/console)
Cheers from Oz,
jwhat/John.
(This post was last modified: 11-11-2021, 11:27 PM by jwhat.)
|