1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Put default values for all sleep in OMR-Tracker

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-01-16 18:38:37 +01:00
parent 08916a7788
commit e9c8954c83
2 changed files with 5 additions and 4 deletions

View file

@ -98,6 +98,7 @@ _launch_tracker() {
ifstatus=$(ifstatus "$1" | jsonfilter -q -e '@["up"]')
ifdevice=$(ifstatus "$1" | jsonfilter -q -e '@["device"]')
#[ "${ifstatus}" = "false" ] && [ -z "${ifdevice}" ] && return
[ -z "${interval}" ] && interval=2
[ -z "${interval_tries}" ] && interval_tries=1
[ -z "${count}" ] && count=2
[ -z "${max_ttl}" ] && max_ttl=60