Re: [yocto] Adding to inittab based on image content

2017-01-11 Thread colin.helliwell
Thanks Rudi, that's got it. -Original Message- From: Rudolf J Streif [mailto:rudolf.str...@gmail.com] Sent: 06 January 2017 17:18 To: yocto@yoctoproject.org; colin.helliw...@ln-systems.com Subject: Re: [yocto] Adding to inittab based on image content Hi Colin, The correct way of doing

Re: [yocto] Adding to inittab based on image content

2017-01-07 Thread Rudolf J Streif
On Saturday, January 7, 2017 10:23:50 AM PST Mike Looijmans wrote: > On 06-01-17 18:17, Rudolf J Streif wrote: > > Hi Colin, > > > > The correct way of doing this is a package postinstallation script that is > > run by the package manager after the package containing your application > > is

Re: [yocto] Adding to inittab based on image content

2017-01-07 Thread Mike Looijmans
On 06-01-17 18:17, Rudolf J Streif wrote: Hi Colin, The correct way of doing this is a package postinstallation script that is run by the package manager after the package containing your application is installed on the target system. You add to your recipe: pkg_postinst_${PN}() { #!/bin/sh

Re: [yocto] Adding to inittab based on image content

2017-01-06 Thread Rudolf J Streif
Hi Colin, The correct way of doing this is a package postinstallation script that is run by the package manager after the package containing your application is installed on the target system. You add to your recipe: pkg_postinst_${PN}() { #!/bin/sh echo "whateveryouneed" >> ${D}/etc/inittab

[yocto] Adding to inittab based on image content

2017-01-06 Thread colin.helliwell
Hi, I have a custom recipe for an application, and the app also needs an entry adding to inittab. I'd like to trigger this, obviously, only when the app is included in the image. I came across some hints at how to do this -