We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 69bd6da + 0f79332 commit 335f132Copy full SHA for 335f132
overlay_rootfs/scripts/rtspserver.sh
@@ -21,11 +21,11 @@ RTSP_AUDIO1=$(awk -F "=" '/RTSP_AUDIO1 *=/ {print $2}' $HACK_INI)
21
RTSP_OVER_HTTP=$(awk -F "=" '/RTSP_OVER_HTTP *=/ {print $2}' $HACK_INI)
22
23
if [ "$1" = "watchdog" ]; then
24
- [ "$RTSPSERVER" = "on" ] || exit 0
+ [ "$RTSP_VIDEO0" = "on" -o "$RTSP_VIDEO1" = "on" ] || exit 0
25
pidof v4l2rtspserver > /dev/null && exit 0
26
fi
27
28
-if [ "$1" = "on" -o "$1" = "restart" -o "$1" = "watchdog" -o "$RTSPSERVER" = "on" ]; then
+if [ "$1" = "on" -o "$1" = "restart" -o "$1" = "watchdog" -o "$RTSP_VIDEO0" = "on" -o "$RTSP_VIDEO1" = "on" ]; then
29
/scripts/cmd video 0 $RTSP_VIDEO0 > /dev/null
30
/scripts/cmd video 1 $RTSP_VIDEO1 > /dev/null
31
/scripts/cmd audio 0 $RTSP_AUDIO0 > /dev/null
0 commit comments