On Fri, 17.04.15 15:54, Praveen kumar R ([email protected]) wrote:

> I have a token passed on by command line argument on which I need to decide
> to start the serial

On which command line? Kernel command line? What kind of "token"?

> console or not. I plan to tweak the getty*ttyS0.service and add the
> script which validates the token and starts the console.
> 
> Is this the right approach or is there any better way of handling it ??

To get a login getty on the serial port its sufficient to add
console=ttyS0... to the kernel cmdline. systemd automatically starts a
serial getty automatically on the first terminal the kernel console is
pointing to.

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to