From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VJfrq-000081-AV for ptxdist@pengutronix.de; Wed, 11 Sep 2013 10:33:42 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1VJfrq-0006ag-8s for ptxdist@pengutronix.de; Wed, 11 Sep 2013 10:33:42 +0200 Date: Wed, 11 Sep 2013 10:33:42 +0200 From: Michael Olbrich Message-ID: <20130911083342.GH26086@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de 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/.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