소스 검색

Fixed broken iCamera patch script for Wyze Cam v3 (#315)

The return code for `false||return` is non-zero, which causes the
script to fail when the v2 checks fail.

Tested on my v3 and it seems to apply the patch properly now.
Leo 3 년 전
부모
커밋
fe4c982796
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      SD_ROOT/wz_mini/usr/bin/patch_icamera.sh

+ 2 - 2
SD_ROOT/wz_mini/usr/bin/patch_icamera.sh

@@ -222,7 +222,7 @@ function patch_wzutil_testconnectbyurl_skip_check() {
 	[ ! -f /opt/wz_mini/tmp/.T20 ]   && return  # Only on the v2
 	[[ "$Version" == "4.61.0.1" ]]   && return
 	[[ "$Version" == "4.36.9.139" ]] && return
-	[[ "$Version" == "4.9.8.1002" ]] || return  # Only supports 4.9.8.1002
+	[[ "$Version" != "4.9.8.1002" ]] && return  # Only supports 4.9.8.1002
 
 	echo -e "\n\n====> Calling ${FUNCNAME[0]}\n"
 
@@ -252,7 +252,7 @@ function patch_wzutil_testconnectbyurl_skip_check() {
 # Applies only to the v2
 function patch_v2_led_connect_led () {
 	# Applies only to this particular firmware in the v2.
-	[[ "$Version" == "4.9.8.1002" ]] || return
+	[[ "$Version" != "4.9.8.1002" ]] && return
 
 	echo -e "\n\n====> Calling ${FUNCNAME[0]}\n"