aboutsummaryrefslogtreecommitdiffstats
path: root/meta-selftest/recipes-test/postinsta/postinsta_1.0.bb
blob: 2e69a8513efccfa9d18c6d2512bea8c13b8c4c4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
LICENSE = "MIT"

RDEPENDS_${PN} = "postinstz"

ALLOW_EMPTY_${PN} = "1"

pkg_postinst_${PN} () {
   if test "x$D" != "x"; then
      # Need to run on first boot
      exit 1
   else
      if test -e /etc/postinstz-test ; then
          echo 'success' > /etc/postinsta-test
      else
          echo 'fail to install postinstz first!' >&2
          exit 1
      fi
   fi
}