From 1d38b9405141cc377ca44a919b15d033c1015ded Mon Sep 17 00:00:00 2001 From: AGG2017 Date: Tue, 5 Mar 2024 18:08:16 -0500 Subject: [PATCH] app_nocamera support for 3.1.0 --- .../OPTIONS/app_nocamera/app_nocamera.sh | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/RESOURCES/OPTIONS/app_nocamera/app_nocamera.sh b/RESOURCES/OPTIONS/app_nocamera/app_nocamera.sh index 2ecb30d..8ca8075 100755 --- a/RESOURCES/OPTIONS/app_nocamera/app_nocamera.sh +++ b/RESOURCES/OPTIONS/app_nocamera/app_nocamera.sh @@ -92,6 +92,30 @@ if [ "$app_ver" == "3.0.9" ]; then fi fi +if [ "$app_ver" == "3.1.0" ]; then + + # stop the app for looking for inserted webcam + sed -i 's/video4linux/videoXlinux/g' "$def_target" + if [ "$app_model" == "K2Pro" ]; then + # stop the app to log the message 'cannot open video' + printf "\x00\xf0\x20\xe3" | dd of="$def_target" bs=1 seek=2338512 conv=notrunc + echo -e "${GREEN}SUCCESS: The 'app' has been patched to stop supporting cameras (K2Pro) ${NC}" + exit 0 + fi + if [ "$app_model" == "K2Plus" ]; then + # stop the app to log the message 'cannot open video' + printf "\x00\xf0\x20\xe3" | dd of="$def_target" bs=1 seek=2338560 conv=notrunc + echo -e "${GREEN}SUCCESS: The 'app' has been patched to stop supporting cameras (K2Plus) ${NC}" + exit 0 + fi + if [ "$app_model" == "K2Max" ]; then + # stop the app to log the message 'cannot open video' + printf "\x00\xf0\x20\xe3" | dd of="$def_target" bs=1 seek=2338560 conv=notrunc + echo -e "${GREEN}SUCCESS: The 'app' has been patched to stop supporting cameras (K2Max) ${NC}" + exit 0 + fi +fi + echo -e "${RED}ERROR: Unsupported model and version! It requires K2Pro/K2Plus/K2Max with version 3.0.5+ ${NC}" exit 11