From 8e6f23ffb82e84cef0f76feaed56b3b17efe5641 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Wed, 18 May 2016 23:13:19 +0300 Subject: [PATCH] motioneye watch: use HEAD instead of GET to SVG --- board/common/overlay/etc/init.d/S85motioneye | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/common/overlay/etc/init.d/S85motioneye b/board/common/overlay/etc/init.d/S85motioneye index 79716402c4..c696141bcd 100755 --- a/board/common/overlay/etc/init.d/S85motioneye +++ b/board/common/overlay/etc/init.d/S85motioneye @@ -29,7 +29,7 @@ opts=$(cat "$conf" | while read line; do echo "--$line"; done) port=$(echo "$opts" | grep -oE 'port [[:digit:]]+' | cut -d ' ' -f 2) responsive() { - wget -q -t 1 -T 2 -O - http://127.0.0.1:$port/static/img/motioneye-logo.svg &>/dev/null && return 0 || return 1 + wget --method=HEAD -q -t 1 -T 2 -O - http://127.0.0.1:$port &>/dev/null && return 0 || return 1 } watch() {