Index: /ipk/source/tools_settime/CONTROL/postinst
===================================================================
--- /ipk/source/tools_settime/CONTROL/postinst	(revision 41104)
+++ /ipk/source/tools_settime/CONTROL/postinst	(revision 41105)
@@ -1,10 +1,11 @@
 #!/bin/sh
+INSTDIR="$1"
 
+sed s#_path_#"$INSTDIR"#g -i "$INSTDIR/etc/oscam.emu"
 
-
-if [ ! -e "/mnt/config/usercmd.sh" ]; then
+if [ ! -e "$INSTDIR/mnt/config/usercmd.sh" ]; then
 	echo "use tpk config file: usercmd.sh"
-	echo "rename /mnt/config/usercmd.sh.usercmd > /mnt/config/usercmd.sh"
-	mv "/mnt/config/usercmd.sh.usercmd" "/mnt/config/usercmd.sh"
+	echo "rename $INSTDIR/mnt/config/usercmd.sh.usercmd > $INSTDIR/mnt/config/usercmd.sh"
+	mv "$INSTDIR/mnt/config/usercmd.sh.usercmd" "$INSTDIR/mnt/config/usercmd.sh"
 else
 	echo "found user config file: usercmd.sh"
@@ -12,5 +13,3 @@
 fi
 
-
-
 exit 0
