From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from r-finger.com (r-finger.com [178.79.160.5]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 0CD74E01403 for ; Wed, 26 Jun 2013 08:37:31 -0700 (PDT) Received: from [192.168.0.2] (host86-137-81-157.range86-137.btcentralplus.com [86.137.81.157]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by r-finger.com (Postfix) with ESMTPSA id 03EF3952B for ; Wed, 26 Jun 2013 16:37:29 +0100 (BST) Message-ID: <51CB0AB3.2070107@r-finger.com> Date: Wed, 26 Jun 2013 16:37:23 +0100 From: Tomas Frydrych User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120624 Icedove/10.0.5 MIME-Version: 1.0 To: yocto@yoctoproject.org References: In-Reply-To: Subject: Re: run commands after installation X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jun 2013 15:37:33 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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