Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I was trying to setup tty auto login for FreeBSD, I copied the P|Pc|Pc part and made a change:

Pcal console:\
  :al=root:ht:np:sp#9600

And modify the tty for ttyv0:

ttyv0 "/usr/libexec/getty Pcal" xterm on secure

But now if I do init q, I get:

enter image description here

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Try changing:

Pcal|Pcal console:\ 
        :al=root:ht:np:sp#9600

ttyv0 "/usr/libexec/getty Pcal" xterm on secure

Now Pcal will be the gettytab entry. | is used as a separator. This to enter alternative names (not sure about that I'm not a gettytab expert ;) ). The last entry until :\ looks like a "human readable" string for the gettytab line.

See if this works. Does anyone know where the | is used for? And how you should read those gettytab entries?

share|improve this answer
    
The | worked, althrough I don't understand why –  warl0ck Oct 23 '12 at 8:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.