summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/systemd.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass
index 9e8a82c9f1..9ec465c759 100644
--- a/meta/classes/systemd.bbclass
+++ b/meta/classes/systemd.bbclass
@@ -23,7 +23,7 @@ python __anonymous() {
23} 23}
24 24
25systemd_postinst() { 25systemd_postinst() {
26if type systemctl >/dev/null 2>/dev/null; then 26if systemctl >/dev/null 2>/dev/null; then
27 OPTS="" 27 OPTS=""
28 28
29 if [ -n "$D" ]; then 29 if [ -n "$D" ]; then
@@ -48,7 +48,7 @@ fi
48} 48}
49 49
50systemd_prerm() { 50systemd_prerm() {
51if type systemctl >/dev/null 2>/dev/null; then 51if systemctl >/dev/null 2>/dev/null; then
52 if [ -z "$D" ]; then 52 if [ -z "$D" ]; then
53 systemctl stop ${SYSTEMD_SERVICE_ESCAPED} 53 systemctl stop ${SYSTEMD_SERVICE_ESCAPED}
54 54