You are not logged in.
Pages: 1
Okay so heres what I want to do.
I want to have mingetty autologin to an account on start up, on all tty's (1-6) , in the autologin accounts .bashrc, it says "some command && logout", So that If I press a key (which stops some command), it then procceds to logout.
I have that working.
Now the issue. When I press the key and logout, It logs me back in. This results in an endless loop.
So, Is there a way to have mingetty only work once, afterwards return to a non autologin mingetty, or even agetty?
I was trying a few things, I cannot seem to get anything to work the way I want it to
Last edited by NictraSavios (2011-06-20 14:31:33)
Offline
Could you paste here your /etc/inittab?
Offline
Its useless for me to do so, Since Its just the stock arch inittab, I don't know how do it , So I reversed any changes I did
Offline
I believe the respawn option is causing your problem (not sure though).
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
I know that. I just dont know how to make what I want to work work, What Im asking, is how would I do this.
Offline
Well, how about not using the respawn option?
$ man inittab
Last edited by .:B:. (2011-06-21 19:18:00)
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
I've found this thread while looking for a solution and I've found one that worked for me.
Editing /etc/inittab like this:
a1:2345:wait:/sbin/mingetty --autologin USERNAME tty1 linux
c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux
It did exactly what you wanted for me, it'll autologin only at boot and you can logout.
Offline
Pages: 1