diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/systemd.bbclass | 4 |
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 | ||
25 | systemd_postinst() { | 25 | systemd_postinst() { |
26 | if type systemctl >/dev/null 2>/dev/null; then | 26 | if 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 | ||
50 | systemd_prerm() { | 50 | systemd_prerm() { |
51 | if type systemctl >/dev/null 2>/dev/null; then | 51 | if 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 | ||