summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: