diff options
-rw-r--r-- | meta-systemd/classes/systemd.bbclass | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/meta-systemd/classes/systemd.bbclass b/meta-systemd/classes/systemd.bbclass index 16ac1fbf1e..f2a0363361 100644 --- a/meta-systemd/classes/systemd.bbclass +++ b/meta-systemd/classes/systemd.bbclass | |||
@@ -22,9 +22,7 @@ systemd_prerm() { | |||
22 | if [ -z "$D" ]; then | 22 | if [ -z "$D" ]; then |
23 | systemctl stop ${SYSTEMD_SERVICE} | 23 | systemctl stop ${SYSTEMD_SERVICE} |
24 | fi | 24 | fi |
25 | } | ||
26 | 25 | ||
27 | systemd_postrm() { | ||
28 | systemctl disable ${SYSTEMD_SERVICE} | 26 | systemctl disable ${SYSTEMD_SERVICE} |
29 | } | 27 | } |
30 | 28 | ||
@@ -120,12 +118,6 @@ python populate_packages_prepend () { | |||
120 | prerm += localdata.getVar('systemd_prerm', 1) | 118 | prerm += localdata.getVar('systemd_prerm', 1) |
121 | d.setVar('pkg_prerm_%s' % pkg, prerm) | 119 | d.setVar('pkg_prerm_%s' % pkg, prerm) |
122 | 120 | ||
123 | postrm = localdata.getVar('pkg_postrm', 1) | ||
124 | if not postrm: | ||
125 | postrm = '#!/bin/sh\n' | ||
126 | postrm += localdata.getVar('systemd_postrm', 1) | ||
127 | d.setVar('pkg_postrm_%s' % pkg, postrm) | ||
128 | |||
129 | # add files to FILES_*-systemd if existent and not already done | 121 | # add files to FILES_*-systemd if existent and not already done |
130 | def systemd_append_file(pkg_systemd, file_append): | 122 | def systemd_append_file(pkg_systemd, file_append): |
131 | appended = False | 123 | appended = False |