diff options
Diffstat (limited to 'ipkg')
-rw-r--r-- | ipkg/ipkg_0.99.120.oe | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ipkg/ipkg_0.99.120.oe b/ipkg/ipkg_0.99.120.oe index 41c425784e..04c2d30305 100644 --- a/ipkg/ipkg_0.99.120.oe +++ b/ipkg/ipkg_0.99.120.oe @@ -7,3 +7,20 @@ SRC_URI = "cvs://anoncvs:anoncvs@192.58.209.91/cvs;module=familiar/dist/ipkg;tag S = "${WORKDIR}/ipkg/C" inherit autotools libtool + +pkg_postinst () { +#!/bin/sh +if [ "x$D" != "x" ]; then + install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d + # this needs to happen after S35mountall so that /tmp is available + echo -e "#!/bin/sh\nipkg-cl configure\nrm -f \$0" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S36configure + chmod 755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S36configure +fi + +update-alternatives --install /usr/bin/ipkg ipkg /usr/bin/ipkg-cl 100 +} + +pkg_postrm () { +#!/bin/sh +update-alternatives --remove ipkg /usr/bin/ipkg-cl +} |