All of lore.kernel.org
 help / color / mirror / Atom feed
From: Katu Txakur <katutxakurra@gmail.com>
To: Tomas Frydrych <tf+lists.yocto@r-finger.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: run commands after installation
Date: Thu, 27 Jun 2013 10:37:53 +0100	[thread overview]
Message-ID: <CAM1ZcoVs-utQDKn8wkup_xOK77Kk=ko3=KuRxuisMP4Uw6Nk2Q@mail.gmail.com> (raw)
In-Reply-To: <51CB0AB3.2070107@r-finger.com>

[-- Attachment #1: Type: text/plain, Size: 813 bytes --]

Thanks Tomas, it was as easy as

pkg_postinst_${PN} () {
     #!/bin/sh -e
     net-snmp-config --create-snmpv3-user -a "my_password" myuser
}



2013/6/26 Tomas Frydrych <tf+lists.yocto@r-finger.com>

> 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@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

[-- Attachment #2: Type: text/html, Size: 1553 bytes --]

      parent reply	other threads:[~2013-06-27  9:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-26 14:32 run commands after installation Katu Txakur
2013-06-26 15:37 ` Tomas Frydrych
2013-06-27  6:38   ` Gaurang Shastri
2013-06-27  7:16     ` Nicolas Dechesne
2013-06-27  9:37   ` Katu Txakur [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAM1ZcoVs-utQDKn8wkup_xOK77Kk=ko3=KuRxuisMP4Uw6Nk2Q@mail.gmail.com' \
    --to=katutxakurra@gmail.com \
    --cc=tf+lists.yocto@r-finger.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.