From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mout.gmx.net ([212.227.17.22]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VJgWt-0002jr-VJ for ptxdist@pengutronix.de; Wed, 11 Sep 2013 11:16:08 +0200 Received: from 3capp-gmx-bs31.server.lan ([172.19.170.83]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0Lmhtl-1Vtqcr35dL-00aCcO for ; Wed, 11 Sep 2013 11:16:02 +0200 MIME-Version: 1.0 Message-ID: From: "Markus Wolters" Date: Wed, 11 Sep 2013 11:16:02 +0200 (CEST) In-Reply-To: <20130911083342.GH26086@pengutronix.de> References: , <20130911083342.GH26086@pengutronix.de> Subject: Re: [ptxdist] How to add opkg/ipkg post install scripts to package? Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1247278993==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============1247278993== Content-Type: text/html; charset=UTF-8
Hello Michael,
 
I'm not quite sure if I got it right. I need to create an user and start some executables on the already running target for example. Is that possible with your solution?
 
Markus
 
Gesendet: Mittwoch, 11. September 2013 um 10:33 Uhr
Von: "Michael Olbrich" <m.olbrich@pengutronix.de>
An: ptxdist@pengutronix.de
Betreff: Re: [ptxdist] How to add opkg/ipkg post install scripts to package?
Hi,

On Wed, Sep 11, 2013 at 08:55:26AM +0200, Markus Wolters wrote:
> is it possible to add an opkg/ipkg postinstall script to a newly created
> ptxdist package? It should be run once when packages is installed on target.

Just create "rules/<package>.postinst". There are some examples in PTXdist.
Note: PTXdist will call the script when creating a rootfs. In this case
$DESTDIR is set to the path where the rootfs is assembled.

Michael

--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |

--
ptxdist mailing list
ptxdist@pengutronix.de
--===============1247278993== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1247278993==--