aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/dpkg/dpkg.inc
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2009-09-30 19:32:02 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2009-09-30 19:32:02 +0200
commit6a891b26422ad8ca344a596a70ef7d7d8ede1e06 (patch)
treeac100a13fd0188915406c132c8363fee475307b2 /recipes/dpkg/dpkg.inc
parentfe2fa19a4a00b3c7778933c476d57ca46c303c61 (diff)
downloadopenembedded-6a891b26422ad8ca344a596a70ef7d7d8ede1e06.tar.gz
dpkg: fix package configuration on first boot
* Use do_install to setup S98configure script, just like for the opkg package.
Diffstat (limited to 'recipes/dpkg/dpkg.inc')
-rw-r--r--recipes/dpkg/dpkg.inc15
1 files changed, 6 insertions, 9 deletions
diff --git a/recipes/dpkg/dpkg.inc b/recipes/dpkg/dpkg.inc
index eb5778fa3b..b15a6365b4 100644
--- a/recipes/dpkg/dpkg.inc
+++ b/recipes/dpkg/dpkg.inc
@@ -19,17 +19,14 @@ inherit autotools gettext
DPKG_INIT_POSITION = "98"
DPKG_INIT_POSITION_slugos = "41"
-pkg_postinst_dpkg () {
-#!/bin/sh
-if [ "x$D" != "x" ]; then
- install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
+do_install_prepend () {
+ install -d ${D}${sysconfdir}/rcS.d
# this happens at S98 where our good 'ole packages script used to run
printf "#!/bin/sh
- dpkg --configure -a
- rm -f /${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
-\n" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
- chmod 0755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
-fi
+dpkg --configure -a
+rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
+" > ${D}${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
+ chmod 0755 ${D}${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure
}
do_configure () {