gstreamer-ti: prettify postinst and postrm
authorKoen Kooi <k-kooi@ti.com>
Thu, 20 May 2010 13:55:07 +0000 (15:55 +0200)
committerKoen Kooi <koen@openembedded.org>
Sat, 12 Jun 2010 09:03:54 +0000 (11:03 +0200)
recipes/ti/ti-dsplink.inc

index aec2742..119211e 100644 (file)
@@ -172,16 +172,19 @@ PACKAGES += "ti-dsplink-module"
 FILES_ti-dsplink-module = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/dsplinkk.ko" 
 RDEPENDS_ti-dsplink-module += "update-modules"
 
-pkg_postinst_ti-dsplink-module_append () {
-        if [ -n "$D" ]; then
-                exit 1
-        fi
-        depmod -a
-        update-modules || true
+pkg_postinst_ti-dsplink-module () {
+#!/bin/sh
+if [ -n "$D" ]; then
+       exit 1
+fi
+
+depmod -a
+update-modules || true
 }
 
-pkg_postrm_ti-dsplink-module_append () {
-        update-modules || true
+pkg_postrm_ti-dsplink-module () {
+#!/bin/sh
+update-modules || true
 }
 
 PACKAGES += "ti-dsplink-examples"