nfc-manager-neard: update recipe 44/25844/2
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Fri, 8 Aug 2014 10:00:53 +0000 (12:00 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Mon, 11 Aug 2014 07:50:30 +0000 (09:50 +0200)
New generated recipe: do not try to execute "systemctl daemon-reload"
when creating the image

Change-Id: I62ee3e46df21bec61de60451a179ec79265aac5b
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
recipes-tizen/nfc-manager-neard/nfc-manager-neard.inc

index e041385..c6f5ba2 100644 (file)
@@ -155,7 +155,7 @@ pkg_postinst_${PN}() {
     #!/bin/sh -e
 
     [ "x\$D" == "x" ] && ldconfig
-    systemctl daemon-reload
+    [ "x\$D" == "x" ] && systemctl daemon-reload
     if [ $1 == 1 ]; then
         systemctl restart nfc-manager-neard.service
     fi
@@ -169,7 +169,7 @@ pkg_postrm_${PN}() {
     if [ $1 == 0 ]; then
         systemctl stop nfc-manager-neard.service
     fi
-    systemctl daemon-reload
+    [ "x\$D" == "x" ] && systemctl daemon-reload
 
 }