diff options
Diffstat (limited to 'meta/recipes-devtools/opkg')
-rw-r--r-- | meta/recipes-devtools/opkg/opkg.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-devtools/opkg/opkg.inc b/meta/recipes-devtools/opkg/opkg.inc index f9c120257b..ff26b04b6e 100644 --- a/meta/recipes-devtools/opkg/opkg.inc +++ b/meta/recipes-devtools/opkg/opkg.inc | |||
@@ -62,8 +62,9 @@ REDIRECT_CMD = "${@base_contains('IMAGE_FEATURES', 'debug-tweaks', '>${POSTLOG} | |||
62 | 62 | ||
63 | pkg_postinst_${PN} () { | 63 | pkg_postinst_${PN} () { |
64 | #!/bin/sh | 64 | #!/bin/sh |
65 | if [ "x$D" != "x" ]; then | 65 | if [ "x$D" != "x" ] && [ -f $D/var/lib/opkg/status ]; then |
66 | install -d $D${sysconfdir}/rcS.d | 66 | install -d $D${sysconfdir}/rcS.d |
67 | |||
67 | # this happens at S98 where our good 'ole packages script used to run | 68 | # this happens at S98 where our good 'ole packages script used to run |
68 | echo "#!/bin/sh | 69 | echo "#!/bin/sh |
69 | opkg-cl configure ${REDIRECT_CMD} | 70 | opkg-cl configure ${REDIRECT_CMD} |