aboutsummaryrefslogtreecommitdiffstats
path: root/meta-selftest/recipes-test/postinstt/postinstt_1.0.bb
blob: 25c279b6e2a95fa858d34db6653b9a5e0add5059 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SUMMARY = "Device formfactor information"
SECTION = "base"
LICENSE = "MIT"

RDEPENDS_${PN} = "postinstp"

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/postinstp-test ; then
          echo 'success' > /etc/postinstt-test
      else
          echo 'fail to install postinstp first!' >&2
          exit 1
      fi
   fi
}