[yocto] run commands after installation

Gaurang Shastri gmshastri at gmail.com
Wed Jun 26 23:38:15 PDT 2013


Hi,

You need to do something like below:

pkg_postinst() {
net-snmp-config --create-snmpv3-user -a "my_password" myuser
}

try with above and it should work :)

//Gaurang Shastri




On Wed, Jun 26, 2013 at 9:07 PM, Tomas Frydrych <tf+lists.yocto at r-finger.com
> wrote:

> On 26/06/13 15:32, Katu Txakur wrote:
> > I want to create a user after adding the snmp recipe. The command to do
> > that is:
> >
> > net-snmp-config --create-snmpv3-user -a "my_password" myuser
> >
> > What's the best way to do it? I have tried from do_install_append and
> > also from ROOTFS_POSTPROCESS_COMMAND but no luck so far.
>
> You need a postinst script for that sort of a thing.
>
> Tomas
>
> --
> http://sleepfive.com
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130627/27658b84/attachment.html>


More information about the yocto mailing list