diff options
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg.inc')
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg.inc | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc index 6bb1e16617..555492089f 100644 --- a/meta/recipes-devtools/dpkg/dpkg.inc +++ b/meta/recipes-devtools/dpkg/dpkg.inc @@ -39,15 +39,6 @@ POSTLOG ?= "/var/log/postinstall.log" REDIRECT_CMD = "${@base_contains('IMAGE_FEATURES', 'debug-tweaks', '>${POSTLOG} 2>&1', '', d)}" DPKG_INIT_POSITION ?= "98" -do_install_prepend () { - install -d ${D}/${sysconfdir}/rcS.d - # this happens at S98 where our good 'ole packages script used to run - echo "#!/bin/sh -dpkg --configure -a ${REDIRECT_CMD} -rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts -" > ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts - chmod 0755 ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts -} do_install_append () { if [ "${PN}" = "dpkg-native" ]; then @@ -67,6 +58,20 @@ do_install_append_class-native () { done } +pkg_postinst_${PN} () { +#!/bin/sh +if [ "x$D" != "x" ] && [ -f $D/var/lib/dpkg/status ]; then + install -d ${D}/${sysconfdir}/rcS.d + + # this happens at S98 where our good 'ole packages script used to run + echo "#!/bin/sh +dpkg --configure -a ${REDIRECT_CMD} +rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts +" > ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts + chmod 0755 ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts +fi +} + PROV = "virtual/update-alternatives" PROV_class-native = "" |