mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
use curl instead of wget to test motioneye responsivity
This commit is contained in:
parent
d37141f2fe
commit
d672eeb7c3
@ -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 --method=HEAD -q -t 1 -T 2 -O - http://127.0.0.1:$port &>/dev/null && return 0 || return 1
|
||||
curl -m 2 --head http://127.0.0.1:$port &>/dev/null && return 0 || return 1
|
||||
}
|
||||
|
||||
watch() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user