-cd $dest_dir
-
-if [ ! -s libhoudini.so ]; then
- if touch .dl_houdini; then
- rm -f .dl_houdini
- else
- cd .. && cp -a arm$1 /data/local/tmp
- mount -t tmpfs tmpfs arm$1 && cd arm$1 &&
- cp -a /data/local/tmp/arm$1/* . && rm -rf /data/local/tmp/arm$1
+cd /data/arm
+if [ -e /system/lib$1/libhoudini.so ]; then
+ log -pi -thoudini "found /system/lib$1/libhoudini.so"
+elif [ -e /system/etc/houdini$1.sfs ]; then
+ busybox mount /system/etc/houdini$1.sfs $dest_dir
+else
+ if mountpoint -q $dest_dir; then
+ kill -9 `fuser -m $dest_dir`
+ umount -f $dest_dir