Skip to content

Commit 145b867

Browse files
committed
[Fix] #211 HA Integration Fix - preventing wd_rtsp process abuse - Release 0.3.7
Changes to be committed: modified: VERSION modified: src/busybox/.config modified: src/static/static/home/yi-hack-v5/script/wd_rtsp.sh modified: src/www/httpd/cgi-bin/privacy.sh modified: src/www/httpd/htdocs/pages/about.html
1 parent 6eb5bd0 commit 145b867

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
0.3.6
1+
0.3.7
22

src/busybox/.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y
196196
#
197197
# Coreutils
198198
#
199-
# CONFIG_BASENAME is not set
199+
CONFIG_BASENAME=y
200200
CONFIG_CAT=y
201201
CONFIG_FEATURE_CATN=y
202202
CONFIG_FEATURE_CATV=y
@@ -1027,9 +1027,9 @@ CONFIG_MPSTAT=y
10271027
# CONFIG_NMETER is not set
10281028
# CONFIG_PGREP is not set
10291029
# CONFIG_PKILL is not set
1030-
# CONFIG_PIDOF is not set
1030+
CONFIG_PIDOF=y
10311031
# CONFIG_FEATURE_PIDOF_SINGLE is not set
1032-
# CONFIG_FEATURE_PIDOF_OMIT is not set
1032+
CONFIG_FEATURE_PIDOF_OMIT=y
10331033
# CONFIG_PMAP is not set
10341034
# CONFIG_POWERTOP is not set
10351035
# CONFIG_FEATURE_POWERTOP_INTERACTIVE is not set

src/static/static/home/yi-hack-v5/script/wd_rtsp.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/bin/sh
22

3+
script_name=$(basename -- "$0")
4+
5+
if pidof "$script_name" -o $$ >/dev/null;then
6+
echo "Already Running - Quitting"
7+
exit 1
8+
fi
9+
310
CONF_FILE="etc/system.conf"
411

512
YI_HACK_PREFIX="/tmp/sd/yi-hack-v5"

src/www/httpd/cgi-bin/privacy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ printf "{\n"
103103
if [ ! -z "$RES" ]; then
104104
printf "\"status\": \"$RES\"\n"
105105
fi
106-
printf "\"%s\":\"%s\"\\n" "error" "false"
106+
107107
printf "}"

src/www/httpd/htdocs/pages/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h6 id="loading-status" class="float-right loading-text"></h6>
99
<div class="row">
1010
<div class="wrap">
1111
<div class="content-left">
12-
<h3>v0.3.6 - BETA</h3>
12+
<h3>v0.3.7 - BETA</h3>
1313
<hr>
1414
<p class="text-intro"><b>RTSP, ONVIF, MQTT, Snapshots and other improvements</b></p>
1515
<p class="text-intro"><b>I recommend enabling 'swap file' in 'Config' if you experience performance issues. This version enforces 'swap file' on yi_dome and yi_home cameras</b></p>

0 commit comments

Comments
 (0)