* Writing recipe for changing /etc/profile
@ 2012-01-28 9:10 Sathishkumar Duraisamy
2012-01-28 10:20 ` Gary Thomas
0 siblings, 1 reply; 4+ messages in thread
From: Sathishkumar Duraisamy @ 2012-01-28 9:10 UTC (permalink / raw)
To: yocto
Hi all,
I have some doubts in launching my application while booting. That is,
once my device is powered on, should land in my application. I found
that by adding some scripts to /etc/profile and enabled auto login, it
does.
Is there a better way to do same? And if the current method is
sufficient, then how do I add patch to change /etc/profile file, or
which recipe gives this file so that I can the in my yocto layer.
--
Regards,
Sathishkumar D
http://flowersopenlab.weebly.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Writing recipe for changing /etc/profile
2012-01-28 9:10 Writing recipe for changing /etc/profile Sathishkumar Duraisamy
@ 2012-01-28 10:20 ` Gary Thomas
2012-01-28 10:34 ` Sathishkumar Duraisamy
0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2012-01-28 10:20 UTC (permalink / raw)
To: yocto
On 2012-01-28 02:10, Sathishkumar Duraisamy wrote:
> Hi all,
>
> I have some doubts in launching my application while booting. That is,
> once my device is powered on, should land in my application. I found
> that by adding some scripts to /etc/profile and enabled auto login, it
> does.
>
> Is there a better way to do same? And if the current method is
> sufficient, then how do I add patch to change /etc/profile file, or
> which recipe gives this file so that I can the in my yocto layer.
>
Add your scripts to /etc/profile.d
There are a few examples in the source tree, e.g.
meta/recipes-graphics/tslib/tslib_1.0.bb
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Writing recipe for changing /etc/profile
2012-01-28 10:20 ` Gary Thomas
@ 2012-01-28 10:34 ` Sathishkumar Duraisamy
2012-01-28 10:41 ` Gary Thomas
0 siblings, 1 reply; 4+ messages in thread
From: Sathishkumar Duraisamy @ 2012-01-28 10:34 UTC (permalink / raw)
To: Gary Thomas; +Cc: yocto
On Sat, Jan 28, 2012 at 3:50 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2012-01-28 02:10, Sathishkumar Duraisamy wrote:
>>
>> Hi all,
>>
>> I have some doubts in launching my application while booting. That is,
>> once my device is powered on, should land in my application. I found
>> that by adding some scripts to /etc/profile and enabled auto login, it
>> does.
>>
>> Is there a better way to do same? And if the current method is
>> sufficient, then how do I add patch to change /etc/profile file, or
>> which recipe gives this file so that I can the in my yocto layer.
>>
>
> Add your scripts to /etc/profile.d
>
> There are a few examples in the source tree, e.g.
> meta/recipes-graphics/tslib/tslib_1.0.bb
Thanks Gray Thomas, it works.
--
Regards,
Sathishkumar D
http://flowersopenlab.weebly.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Writing recipe for changing /etc/profile
2012-01-28 10:34 ` Sathishkumar Duraisamy
@ 2012-01-28 10:41 ` Gary Thomas
0 siblings, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2012-01-28 10:41 UTC (permalink / raw)
To: Sathishkumar Duraisamy; +Cc: yocto
On 2012-01-28 03:34, Sathishkumar Duraisamy wrote:
> On Sat, Jan 28, 2012 at 3:50 PM, Gary Thomas<gary@mlbassoc.com> wrote:
>> On 2012-01-28 02:10, Sathishkumar Duraisamy wrote:
>>>
>>> Hi all,
>>>
>>> I have some doubts in launching my application while booting. That is,
>>> once my device is powered on, should land in my application. I found
>>> that by adding some scripts to /etc/profile and enabled auto login, it
>>> does.
>>>
>>> Is there a better way to do same? And if the current method is
>>> sufficient, then how do I add patch to change /etc/profile file, or
>>> which recipe gives this file so that I can the in my yocto layer.
>>>
>>
>> Add your scripts to /etc/profile.d
>>
>> There are a few examples in the source tree, e.g.
>> meta/recipes-graphics/tslib/tslib_1.0.bb
>
> Thanks Gray Thomas, it works.
Glad to help.
n.b. I am gray (haired), but my name is Gary :-)
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-01-28 10:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-28 9:10 Writing recipe for changing /etc/profile Sathishkumar Duraisamy
2012-01-28 10:20 ` Gary Thomas
2012-01-28 10:34 ` Sathishkumar Duraisamy
2012-01-28 10:41 ` Gary Thomas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.