Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set back system console

Status
Not open for further replies.

eepico

MIS
Jan 6, 2002
60
HK
Hi friends,

I was wrongly set the system console to some tty and not the tty01 when I switched one SCO OpenServer 502 to single user mode. Now whenever boot up the server, I need to switch ttys to finish the boot process. How can I set it back to normal (tty01)? Thanks!

Jack
 
Quick & dirty? Check '/etc/inittab' for the line that says:

Code:
co:2345:respawn:/etc/getty tty01 sc_m

I suspect that the phrase 'tty01' is not there. Edit the line and reboot.

Gafling


 
Not really, the inittab does contains this line:

[tt]co:2345:respawn:/etc/getty tty01 sc_m[/tt]
[tt]co1:1:respawn:/bin/sh -c "sleep 20; exec /etc/getty tty01 sc_m"[/tt]
[tt]c02:234:respawn:/etc/getty tty02 sc_m[/tt]
[tt]c03:234:respawn:/etc/getty tty03 sc_m[/tt]
[tt]etc...[/tt]

The problem is still there, any other hints? Thank you!

Jack
 
what does OVERRIDE= in your /etc/default/login?

(a long shot...)

mine is set to tty01
 
Yes, it is also set to tty01...

[tt]OVERRIDE=tty01[/tt]
 
look in /etc/default/login....

look for a line that has something like

SYSTTY=1

remove that line and reboot

should do it

HTH

Scott
 
[tt]ALTSHELL=YES
ULIMIT=2097151
PATH=/bin:/usr/bin
OVERRIDE=tty01
PASSREQ=NO
IDLEWEEKS=0
ALLOWHUSH=YES
REUSEUID=YES[/tt]

This is all the default login file content and has no SYSTTY line there. Any other hints?
 
Where are you booting from? Sounds like your on some kind of 'virtual terminal'. If so look at 'man init'. It may be of help.
 
My first problem with SCO OpenServer was same. It was ODT 1.0 in 1991 :)) I shutdown from X session...

There are 3 files - something like /dev/systty /dev/console /dev/syscon.
Two (or even all of them) are links to real console device.
One of them is linked to terminal, where last was issued shutdown command. The system memorizes "where my master is" :)) So track links to/from these files.
Do not remember more after 11 years. Good luck !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top