diff --git a/SD_ROOT/wz_mini/etc/init.d/wz_post.sh b/SD_ROOT/wz_mini/etc/init.d/wz_post.sh index 1feecf8..debcc00 100755 --- a/SD_ROOT/wz_mini/etc/init.d/wz_post.sh +++ b/SD_ROOT/wz_mini/etc/init.d/wz_post.sh @@ -87,9 +87,8 @@ if [[ "$RTSP_HI_RES_ENABLED" == "true" ]] || [[ "$RTSP_LOW_RES_ENABLED" == "tru insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/extra/v4l2loopback.ko video_nr=1 fi fi - - cp /system/bin/iCamera /opt/wz_mini/tmp/.storage/ - mount -o ro,bind /opt/wz_mini/usr/bin/iCamera /system/bin/iCamera + echo "set path for iCamera" + sed -i 's/\/system\/bin\/iCamera/\/opt\/wz_mini\/usr\/bin\/iCamera/g' /opt/wz_mini/tmp/.storage/app_init.sh fi /opt/wz_mini/etc/init.d/wz_user.sh & diff --git a/SD_ROOT/wz_mini/usr/bin/iCamera b/SD_ROOT/wz_mini/usr/bin/iCamera index 425cffa..595aae1 100755 --- a/SD_ROOT/wz_mini/usr/bin/iCamera +++ b/SD_ROOT/wz_mini/usr/bin/iCamera @@ -6,7 +6,4 @@ echo "inject callback library and run" export LD_LIBRARY_PATH='/thirdlib:/system/lib:/opt/wz_mini/lib' -#libcallback has setunbuf built-in -#LD_PRELOAD='libcallback.so:libtinyalsa.so.2.0.0:libsetunbuf.so' /opt/wz_mini/tmp/.storage/iCamera - -LD_PRELOAD='libcallback.so:libtinyalsa.so.2.0.0' /opt/wz_mini/tmp/.storage/iCamera +LD_PRELOAD='libcallback.so:libtinyalsa.so.2.0.0' /system/bin/iCamera