My postinst script is working now, but I have to ask another question. As the most commands executed in the script require a running target (e.g. access to sdcard), how can I prevent the script from beeing executed at ptxdists targetinstall time on build host?
 
Regards,
Markus
 
Gesendet: Montag, 16. September 2013 um 14:03 Uhr
Von: "Markus Wolters" <MarkusWolters@gmx.de>
An: ptxdist@pengutronix.de
Betreff: Re: [ptxdist] How to add opkg/ipkg post install scripts to package?
I have forgotten to mention that I'm using ptxdist Version "ptxdist-2012.03.0". Maybe something changed since this release?
 
Markus
 
Gesendet: Montag, 16. September 2013 um 10:36 Uhr
Von: "Markus Wolters" <MarkusWolters@gmx.de>
An: ptxdist@pengutronix.de
Betreff: Re: [ptxdist] How to add opkg/ipkg post install scripts to package?
Hi Michael,
 
that's what I meant when I wrote:
> If I extract the files
> from ipk, there is no postinst file included
;-)
 
There is no postinst script in the tar-ball.
 
Gesendet: Montag, 16. September 2013 um 10:23 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 Mon, Sep 16, 2013 at 08:57:36AM +0200, Markus Wolters wrote:
> unfortunately I'm not able to get it work. My foo.postinst only contains an
> echo "something" and exit 0. Rights are rx for everyone. If I extract the files
> from ipk, there is no postinst file included and no script gets executed on
> install/upgrade. Any ideas what's going wrong?

Take a closer look at the ipkg. It is a zip file that contains 2 tar-balls.
The postinst script should be in the control tar-ball.

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