summaryrefslogtreecommitdiffstats
path: root/meta/classes/update-rc.d.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/update-rc.d.bbclass')
-rw-r--r--meta/classes/update-rc.d.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass
index 51ad8b1ae9..65bf022e49 100644
--- a/meta/classes/update-rc.d.bbclass
+++ b/meta/classes/update-rc.d.bbclass
@@ -57,19 +57,19 @@ python populate_packages_updatercd () {
57 execute on the target. Not doing so may cause update_rc.d postinst invoked 57 execute on the target. Not doing so may cause update_rc.d postinst invoked
58 twice to cause unwanted warnings. 58 twice to cause unwanted warnings.
59 """ 59 """
60 postinst = d.getVar('pkg_postinst_%s' % pkg, True) or d.getVar('pkg_postinst', True) 60 postinst = d.getVar('pkg_postinst_%s' % pkg, True)
61 if not postinst: 61 if not postinst:
62 postinst = '#!/bin/sh\n' 62 postinst = '#!/bin/sh\n'
63 postinst += d.getVar('updatercd_postinst', True) 63 postinst += d.getVar('updatercd_postinst', True)
64 d.setVar('pkg_postinst_%s' % pkg, postinst) 64 d.setVar('pkg_postinst_%s' % pkg, postinst)
65 65
66 prerm = d.getVar('pkg_prerm_%s' % pkg, True) or d.getVar('pkg_prerm', True) 66 prerm = d.getVar('pkg_prerm_%s' % pkg, True)
67 if not prerm: 67 if not prerm:
68 prerm = '#!/bin/sh\n' 68 prerm = '#!/bin/sh\n'
69 prerm += d.getVar('updatercd_prerm', True) 69 prerm += d.getVar('updatercd_prerm', True)
70 d.setVar('pkg_prerm_%s' % pkg, prerm) 70 d.setVar('pkg_prerm_%s' % pkg, prerm)
71 71
72 postrm = d.getVar('pkg_postrm_%s' % pkg, True) or d.getVar('pkg_postrm', True) 72 postrm = d.getVar('pkg_postrm_%s' % pkg, True)
73 if not postrm: 73 if not postrm:
74 postrm = '#!/bin/sh\n' 74 postrm = '#!/bin/sh\n'
75 postrm += d.getVar('updatercd_postrm', True) 75 postrm += d.getVar('updatercd_postrm', True)