Index: ipk/source.sh4/tools_lcdpearl1/CONTROL/postinst
===================================================================
--- ipk/source.sh4/tools_lcdpearl1/CONTROL/postinst	(revision 32196)
+++ ipk/source.sh4/tools_lcdpearl1/CONTROL/postinst	(revision 43292)
@@ -3,13 +3,8 @@
 PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/lcdpearl1" 
 
-if [ `cat /proc/version | grep stm24 | wc -l` -eq 1 ]; then
-	cd /tmp/stm24
-else
-	cd /tmp/stm23
+if [ -e /etc/.oebuild ];then
+	opkg update
+	opkg install titan-plugin-lcdpearl1 --dest $1
 fi
-cp -RP lcdpearl1 "$INSTDIR/usr/local/share/titan/plugins"
-cd /tmp
-rm -rf stm24
-rm -rf stm23
 
 exit 0
Index: ipk/source.sh4/tools_lcdpearl1/CONTROL/postrm
===================================================================
--- ipk/source.sh4/tools_lcdpearl1/CONTROL/postrm	(revision 32196)
+++ ipk/source.sh4/tools_lcdpearl1/CONTROL/postrm	(revision 43292)
@@ -6,3 +6,7 @@
 rm -rf /var/etc/lcd4linux.conf
 
+if [ -e /etc/.oebuild ];then
+	opkg remove titan-plugin-lcdpearl1 --dest $1
+fi
+
 exit 0
