From f580058ee7f877c3d9d56a33d540247b62f14394 Mon Sep 17 00:00:00 2001 From: John Klug Date: Tue, 28 Nov 2017 16:41:12 -0600 Subject: Bail out on install if AEP in /etc/issue --- recipes-devtools/node-red/node-red_0.15.3.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'recipes-devtools') diff --git a/recipes-devtools/node-red/node-red_0.15.3.bb b/recipes-devtools/node-red/node-red_0.15.3.bb index 940b5bd..bacf9fd 100644 --- a/recipes-devtools/node-red/node-red_0.15.3.bb +++ b/recipes-devtools/node-red/node-red_0.15.3.bb @@ -44,5 +44,16 @@ do_install() { install -d ${D}/opt/node-red cp -r ./node_modules/node-red/* ${D}/opt/node-red/ } +pkg_preinst_${PN}() { + if grep 'Application Execution Platform with mLinux' /etc/issue ; then + ((aep=1)) + fi + ls /etc/init.d >/tmp/init.txt + + if ((aep == 1)) ; then + logger -t opkg -s -p user.error 'Application Execution Platform detected in /etc/issue -- this node-red package is for mLinux not AEP' + exit 1 + fi +} FILES_${PN} += "/opt/node-red" -- cgit v1.2.3