diff options
-rw-r--r-- | meta/recipes-devtools/opkg/opkg.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-devtools/opkg/opkg.inc b/meta/recipes-devtools/opkg/opkg.inc index 8d48006d64..f9c120257b 100644 --- a/meta/recipes-devtools/opkg/opkg.inc +++ b/meta/recipes-devtools/opkg/opkg.inc | |||
@@ -57,13 +57,16 @@ do_install_append_class-native() { | |||
57 | fi | 57 | fi |
58 | } | 58 | } |
59 | 59 | ||
60 | POSTLOG ?= "/var/log/postinstall.log" | ||
61 | REDIRECT_CMD = "${@base_contains('IMAGE_FEATURES', 'debug-tweaks', '>${POSTLOG} 2>&1', '', d)}" | ||
62 | |||
60 | pkg_postinst_${PN} () { | 63 | pkg_postinst_${PN} () { |
61 | #!/bin/sh | 64 | #!/bin/sh |
62 | if [ "x$D" != "x" ]; then | 65 | if [ "x$D" != "x" ]; then |
63 | install -d $D${sysconfdir}/rcS.d | 66 | install -d $D${sysconfdir}/rcS.d |
64 | # this happens at S98 where our good 'ole packages script used to run | 67 | # this happens at S98 where our good 'ole packages script used to run |
65 | echo "#!/bin/sh | 68 | echo "#!/bin/sh |
66 | opkg-cl configure | 69 | opkg-cl configure ${REDIRECT_CMD} |
67 | rm -f /${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts | 70 | rm -f /${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts |
68 | " > $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts | 71 | " > $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts |
69 | chmod 0755 $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts | 72 | chmod 0755 $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts |