summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-07-29 10:12:13 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-07-29 10:12:13 +0000
commit5e12400fcbb65264cda47604da2960d01819e27b (patch)
treefed83eb78b08d268c99142a608e6aed60d4c2b5c /meta
parent34d7e090e89b4735f37adfb32e56a82fcff0bfc4 (diff)
downloadpoky-5e12400fcbb65264cda47604da2960d01819e27b.tar.gz
update-rc.d.bbclass: add code at start of post install scripts so it will be called on host
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4976 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/update-rc.d.bbclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass
index 3051b7933f..9b832c0012 100644
--- a/meta/classes/update-rc.d.bbclass
+++ b/meta/classes/update-rc.d.bbclass
@@ -45,10 +45,12 @@ python populate_packages_prepend () {
45 bb.data.setVar("OVERRIDES", "%s:%s" % (pkg, overrides), localdata) 45 bb.data.setVar("OVERRIDES", "%s:%s" % (pkg, overrides), localdata)
46 bb.data.update_data(localdata) 46 bb.data.update_data(localdata)
47 47
48 postinst = bb.data.getVar('pkg_postinst', localdata, 1) 48 postinst = '#!/bin/sh\n'
49 if not postinst:
50 postinst = '#!/bin/sh\n'
51 postinst += bb.data.getVar('updatercd_postinst', localdata, 1) 49 postinst += bb.data.getVar('updatercd_postinst', localdata, 1)
50 try:
51 postinst += bb.data.getVar('pkg_postinst', localdata, 1)
52 except:
53 pass
52 bb.data.setVar('pkg_postinst_%s' % pkg, postinst, d) 54 bb.data.setVar('pkg_postinst_%s' % pkg, postinst, d)
53 prerm = bb.data.getVar('pkg_prerm', localdata, 1) 55 prerm = bb.data.getVar('pkg_prerm', localdata, 1)
54 if not prerm: 56 if not prerm: