From 1534e2dc2e10c5bed0925b6d3493d277e768e826 Mon Sep 17 00:00:00 2001 From: Date: Sun, 5 Nov 2017 15:33:54 +0000 Subject: [PATCH] Experimental changes to avoid the toolset to be removed when RTSP is running. --- sdcard/midgard.ini | 6 +++--- sdcard/tools/inject.sh | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sdcard/midgard.ini b/sdcard/midgard.ini index 30d2a35..24ffb41 100644 --- a/sdcard/midgard.ini +++ b/sdcard/midgard.ini @@ -1,9 +1,9 @@ ## Total Disconnection with Xioami Servers (0,1) CLOUD_DISABLED=0 ## Streaming with Xioami Servers (0,1). Can be used with CLOUD_ENABLED to be able to manage the camera but not streaming outside your network. -CLOUD_STREAMING_DISABLED=1 +CLOUD_STREAMING_DISABLED=0 ## Local Streaming. (0,1) -RTSP_ENABLED=1 +RTSP_ENABLED=0 ## Local Streaming config -bBITRATE -fFRAMERATE -wWIDTH -hHEIGHT -mBITRATEMODE #### BITRATEMODE # 1 Constant Bitrate @@ -14,7 +14,7 @@ CONFIG_LINE=-b4098 -f20 -w1920 -h1080 -m1 ## Root password for SSH Server (at least length 8) SSH_ROOT_PASS=qwerty123456 ## DISABLED OTA (0/1) -DISABLED_OTA=1 +DISABLED_OTA=0 ## lighttpd on port 8080 HTTP_ENABLED=0 ## samba server diff --git a/sdcard/tools/inject.sh b/sdcard/tools/inject.sh index c256de5..4314564 100644 --- a/sdcard/tools/inject.sh +++ b/sdcard/tools/inject.sh @@ -16,6 +16,8 @@ flagUnmount=0 /tmp/ld-uClibc.so.0 /tmp/busybox echo -e "----------------------------------------------------" | /tmp/ld-uClibc.so.0 /tmp/busybox logger -t miio_ota /tmp/ld-uClibc.so.0 /tmp/busybox cat /proc/mtd | /tmp/ld-uClibc.so.0 /tmp/busybox logger -t miio_ota +psRTSP_Server=/tmp/ld-uClibc.so.0 /tmp/busybox ps -o pid,args -C bash | /tmp/ld-uClibc.so.0 /tmp/busybox awk '/rtsp_basic/ { print $1 }' +kill -9 $psRTSP_Server | /tmp/ld-uClibc.so.0 /tmp/busybox logger -t miio_ota /tmp/ld-uClibc.so.0 /tmp/busybox echo -e "\n mount" | /tmp/ld-uClibc.so.0 /tmp/busybox logger -t miio_ota /tmp/ld-uClibc.so.0 /tmp/busybox echo -e "----------------------------------------------------" | /tmp/ld-uClibc.so.0 /tmp/busybox logger -t miio_ota