aboutsummaryrefslogtreecommitdiff
path: root/utils/watchcat
Commit message (Collapse)AuthorAge
* watchcat: fix broken ping invocation for no-address-family configurationMichal Kowalski2022-08-01
| | | | | | | Fix for issue #19010 Signed-off-by: John Kohl <jtk.git@bostonpog.org> Signed-off-by: Michal Kowalski <18610805+kofec@users.noreply.github.com>
* watchcat: add support to run a scriptJohn Kohl2022-07-15
| | | | Signed-off-by: John Kohl <jtk.git@bostonpog.org>
* watchcat: add IP version selection support; fix bug with unlockbandsJohn Kohl2022-07-15
| | | | Signed-off-by: John Kohl <jtk.git@bostonpog.org>
* utils/watchcat: restart failure time after network restartRozhuk Ivan2022-02-23
| | | | | | | | | | | | | | | | | | Without this change these settings: Mode: Restart Interface Period: 30s Check Interval: 5s will do ping every 30s, if all pings are fail then it try to take action every 5 second. After apply this patch watchcat will try to send ping every 5 second in next 30 sec before take action if all pings are fail. This is important for wireless uplinks like 3G/4G that need some time to establish connection. Signed-off-by: Rozhuk Ivan <rozhuk.im@gmail.com>
* watchcat: run through shfmtRosen Penev2021-08-15
| | | | | | Cosmetic fixes mainly. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* watchcat: update to support procdNicholas Smith2021-02-24
| | | | Signed-off-by: Nicholas Smith <nicholas@nbembedded.com>
* watchcat: add ability to restart interface + refactorNicholas Smith2020-12-21
| | | | Signed-off-by: Nicholas Smith <nicholas@nbembedded.com>
* watchcat: add support for specifying ping packet sizeNicholas Smith2020-12-14
| | | | Signed-off-by: Nicholas Smith <nicholas@nbembedded.com>
* watchcat: refactor function namesNicholas Smith2020-12-14
| | | | Signed-off-by: Nicholas Smith <nicholas@nbembedded.com>
* watchcat: add nopingtime option + refactoringVasily Trotzky2020-11-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | nopingtime UCI option rationale: I want relatively fast reaction(i.e. 1m or 2m) for 'no internet' condition, but i don't want my router to reboot every 1 minute if there is still no internet after reboot. initd_watchcat: * add: nopingtime uci option support * add: defaults to all non-critical options * add: log warnings for non-critical errors(when option is missed and default is applyed) * fix: error handling and config_get defaults are somtimes in conflict because of config_get defaults. They are gone now, error handling improved. * fix: calling watchcat.sh with 'period' mode instead of 'ping'. Typo? * fix: pingperiod default changed from period/20 to more reasonable period/5 watchcat.sh: * add: nopingtime uci option support( sleep if uptime < nopingtime ) * remove: [ "$mode" = "allways" ] && mode="always" - not needed, already done by initd_watchcat in load_watchcat() func * add: echo 1 > /proc/sys/kernel/sysrq before sysrq-trigger * refactor: eliminated once used not needed variables, code size reduced. * PKG_RELEASE bumped up Signed-off-by: Vasily Trotzky <trotzky.vas@gmail.com>
* watchcat: make compatible with updated busybox ash array handlingNuno Goncalves2019-10-01
| | | | Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
* treewide: add missing PKGARCH:=all to non-binary packagesDeng Qingfang2019-03-30
| | | | | | | Packages such as Perl, Lua, shell scripts don't generate binary files. Add PKGARCH:=all to them. Signed-off-by: Deng Qingfang <dengqf6@mail2.sysu.edu.cn>
* watchcat: bump release due to 8e1e4d7d2d2bfe88c1b14a8e844222278e12fcccNuno Goncalves2017-12-21
| | | | Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
* Force a kill of the existing Processes to make sure they are left and the ↵AaronA2017-11-02
| | | | processes begin to stack up.
* watchcat: fix operation of mode 'always'ascob2016-08-24
| | | | | | | | | This patch fixes the watchcat init script in case of mode 'always'. This mode just needs the config parameters: mode, period and forcedelay. But a wrong check against the variable pingperiod, needed in the mode 'ping' prevented mode 'always' to work properly. Signed-off-by: Tobias Ilte <tobias.ilte@campus.tu-berlin.de>
* utils/watchcat: Fix some typos (mostly found by codespell)Stefan Weil2016-04-30
| | | | | | | Note that this implies an API change (allways -> always). The wrong spelling "allways" is still accepted for backward compatibility. Signed-off-by: Stefan Weil <sw@weilnetz.de>
* utils: Fix typos (found by codespell)Stefan Weil2016-03-26
| | | | Signed-off-by: Stefan Weil <sw@weilnetz.de>
* add licenseRoger2014-08-14
| | | | Signed-off-by: Roger D rogerdammit@gmail.com
* watchcat: add with myself as maintainerRoger2014-08-13
Signed-off-by: Roger D rogerdammit@gmail.com