Add pre/post install/uninstall scripts.
Change-Id: I9f8db9b9b97eff8751fb59ee9462bbdb02528536
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
}
+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 = ""