Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
changeset 351:9d6b19f72ee5
Do not use the pre-defined anticongestion but a short random sleep
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Wed, 07 Dec 2022 17:13:23 +0100 |
| parents | 738fe7206eab |
| children | 619a32c6baaa |
| files | etc/periodic/daily/800.local-ipv6-refresh |
| diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/etc/periodic/daily/800.local-ipv6-refresh Wed Dec 07 17:03:46 2022 +0100 +++ b/etc/periodic/daily/800.local-ipv6-refresh Wed Dec 07 17:13:23 2022 +0100 @@ -54,10 +54,13 @@ echo 1>&2 "$0: WARNING: \$ipv6_defaultrouter has an unexpected empty value" ;; *) - if type anticongestion >/dev/null 2>&1; then - anticongestion_sleeptime=60 - anticongestion - fi + #if type anticongestion >/dev/null 2>&1; then + # anticongestion_sleeptime=60 + # anticongestion + #fi + + # Wait up to 10 seconds to avoid router congestion + /bin/sleep $(/usr/bin/jot -r 1 0 10) /usr/sbin/traceroute6 ${daily_local_ipv6_refresh_flags} "${daily_local_ipv6_refresh_target}" rc=$? ;;
