web cam fixes cleanup

This commit is contained in:
Alfonso Gamboa 2022-05-18 12:44:25 -07:00
parent 2b92e37f5e
commit b169cc6efb
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,8 @@
set -x set -x
exec 1> /opt/wz_mini/log/wz_cam.log 2>&1
cp /opt/wz_mini/etc/uvc.config /opt/wz_mini/usr/bin/uvc.config cp /opt/wz_mini/etc/uvc.config /opt/wz_mini/usr/bin/uvc.config
if [[ $(cat /opt/wz_mini/run_mmc.sh | grep "WEB_CAM_FPS_RATE\=") != "" ]]; then if [[ $(cat /opt/wz_mini/run_mmc.sh | grep "WEB_CAM_FPS_RATE\=") != "" ]]; then
@ -15,7 +17,6 @@ WEB_CAM_BIT_RATE=$(cat /opt/wz_mini/run_mmc.sh | grep "WEB_CAM_BIT_RATE\=" | cut
sed -i "s/bitrate :8000/bitrate :$WEB_CAM_BIT_RATE/" "/opt/wz_mini/usr/bin/uvc.config" sed -i "s/bitrate :8000/bitrate :$WEB_CAM_BIT_RATE/" "/opt/wz_mini/usr/bin/uvc.config"
fi fi
exec 1> /opt/wz_mini/log/wz_cam.log 2>&1
mount --bind /opt/wz_mini/usr/bin /system/bin mount --bind /opt/wz_mini/usr/bin /system/bin
insmod /system/driver/avpu.ko insmod /system/driver/avpu.ko

View File

@ -12,7 +12,7 @@ HOSTNAME="WCV3"
#### W E B CAMERA### #### W E B CAMERA###
##THIS MODE DISABLES EVERYTHING AND IT WILL ##THIS MODE DISABLES EVERYTHING AND IT WILL
## WORK AS A WEB CAMERA FOR YOUR PC ***ONLY*** ## WORK AS A WEB CAMERA FOR YOUR PC ***ONLY***
WEB_CAM_ENABLE="true" WEB_CAM_ENABLE="false"
WEB_CAM_BIT_RATE="8000" WEB_CAM_BIT_RATE="8000"
WEB_CAM_FPS_RATE="25" WEB_CAM_FPS_RATE="25"