Re: [systemd-devel] controlling serial console using a token

2015-04-20 Thread Andrei Borzenkov
On Mon, Apr 20, 2015 at 7:15 AM, Praveen kumar R praveenrgo...@gmail.com wrote: You mean in the getty-generator.c ? I actually mean your own customer generator. On Mon, Apr 20, 2015 at 9:14 AM, Andrei Borzenkov arvidj...@gmail.com wrote: В Mon, 20 Apr 2015 09:09:09 +0530 Praveen kumar R

Re: [systemd-devel] controlling serial console using a token

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 13:06, Andrei Borzenkov (arvidj...@gmail.com) wrote: On Mon, Apr 20, 2015 at 7:15 AM, Praveen kumar R praveenrgo...@gmail.com wrote: You mean in the getty-generator.c ? I actually mean your own customer generator. For details see:

Re: [systemd-devel] controlling serial console using a token

2015-04-19 Thread Andrei Borzenkov
В Sat, 18 Apr 2015 19:54:50 +0530 Praveen kumar R praveenrgo...@gmail.com пишет: Yes it's a kernel command line arg, it is board specific token introduced to control the serial console. if defined serial console should not be enabled. Sorry I do not understand this sentence. define what?

Re: [systemd-devel] controlling serial console using a token

2015-04-19 Thread Praveen kumar R
This is the snippet of the code in the systemV init system that controls the serial console login depending on the token TOKENEXIST=`grep TOKEN= /proc/cmdline` TOKEN=0 if [ X$TOKENEXIST != X ]; then #If token is pass as a command line arg, use it. TOKEN=`sed

Re: [systemd-devel] controlling serial console using a token

2015-04-19 Thread Andrei Borzenkov
В Mon, 20 Apr 2015 09:09:09 +0530 Praveen kumar R praveenrgo...@gmail.com пишет: This is the snippet of the code in the systemV init system that controls the serial console login depending on the token TOKENEXIST=`grep TOKEN= /proc/cmdline` TOKEN=0 if [ X$TOKENEXIST != X ]; then

Re: [systemd-devel] controlling serial console using a token

2015-04-19 Thread Praveen kumar R
You mean in the *getty-generator.c ?* On Mon, Apr 20, 2015 at 9:14 AM, Andrei Borzenkov arvidj...@gmail.com wrote: В Mon, 20 Apr 2015 09:09:09 +0530 Praveen kumar R praveenrgo...@gmail.com пишет: This is the snippet of the code in the systemV init system that controls the serial console

[systemd-devel] controlling serial console using a token

2015-04-18 Thread Praveen kumar R
Yes it's a kernel command line arg, it is board specific token introduced to control the serial console. if defined serial console should not be enabled. we have this in place for other system initializing system - sytemV , where depending On Fri, Apr 17, 2015 at 4:24 PM, Lennart Poettering

Re: [systemd-devel] controlling serial console using a token

2015-04-17 Thread Lennart Poettering
On Fri, 17.04.15 15:54, Praveen kumar R (praveenrgo...@gmail.com) 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

[systemd-devel] controlling serial console using a token

2015-04-17 Thread Praveen kumar R
I have a token passed on by command line argument on which I need to decide to start the serial 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 ??