[yocto] run commands after installation

Nicolas Dechesne nicolas.dechesne at linaro.org
Thu Jun 27 00:16:17 PDT 2013


On Thu, Jun 27, 2013 at 8:38 AM, Gaurang Shastri <gmshastri at gmail.com>wrote:

> 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 :)
>

note it should be

pkg_postinst_PACKAGENAME(), so in most cases: pkg_postinst_${PN}()

also, see:

http://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#post-installation-scripts
http://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#usingpoky-extend-addpkg-postinstalls
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130627/a190b1f5/attachment.html>


More information about the yocto mailing list