Update avsystem recipe 46/22846/1
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 11 Jun 2014 09:58:49 +0000 (11:58 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Thu, 12 Jun 2014 15:27:33 +0000 (17:27 +0200)
Add pre/post install/uninstall scripts.

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

index 6ffffe3..ef78c4e 100644 (file)
@@ -145,6 +145,46 @@ do_install() {
  
 }
 
+pkg_postinst_libavsysaudio() {
+    #!/bin/sh -e
+
+    /sbin/ldconfig
+
+}
+
+pkg_postinst_${PN}() {
+    #!/bin/sh -e
+
+    systemctl daemon-reload
+    if [ $1 == 1 ]; then
+        systemctl restart avsystem.service
+    fi
+
+}
+
+pkg_prerm_${PN}() {
+    #!/bin/sh -e
+
+    if [ $1 == 0 ]; then
+        systemctl stop avsystem.service
+    fi
+
+}
+
+pkg_postrm_libavsysaudio() {
+    #!/bin/sh -e
+
+    /sbin/ldconfig
+
+}
+
+pkg_postrm_${PN}() {
+    #!/bin/sh -e
+
+    systemctl daemon-reload
+
+}
+
 PACKAGES += " libavsysaudio "
 
 avsystem_files = ""