Skip to content

Commit

Permalink
Experimental changes to avoid the toolset to be removed when RTSP is …
Browse files Browse the repository at this point in the history
…running.
  • Loading branch information
Unknown authored and Unknown committed Nov 5, 2017
1 parent 241c11a commit 1534e2d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdcard/midgard.ini
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions sdcard/tools/inject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1534e2d

Please sign in to comment.