Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
changeset 215:7d07c4e214ee
Allow to customize the traceroute target for the IPv6 refresh periodic task
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 25 Aug 2022 08:53:19 +0200 |
| parents | b9cdf45a2d27 |
| children | c7a6537995cf |
| files | etc/periodic/daily/800.local-ipv6-refresh |
| diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/etc/periodic/daily/800.local-ipv6-refresh Sun Aug 21 18:29:23 2022 +0200 +++ b/etc/periodic/daily/800.local-ipv6-refresh Thu Aug 25 08:53:19 2022 +0200 @@ -27,6 +27,7 @@ # : ${daily_local_ipv6_refresh_enable:="NO"} : ${daily_local_ipv6_refresh_flags:="-n -w2 -q2 -m1 -I"} +: ${daily_local_ipv6_refresh_target:="${ipv6_defaultrouter}"} rc=0 @@ -43,9 +44,10 @@ ;; esac -case "${ipv6_defaultrouter}" in -[Nn][Oo]) - # SKIP because no IP static IPv6 router given +case "${daily_local_ipv6_refresh_target}" in +"NO") + # SKIP because no target or no static IPv6 router given + echo 1>&2 "$0: WARNING: \$daily_local_ipv6_refresh_target is \`NO'" ;; '') # SKIP because this is an unresolvable router specification @@ -56,7 +58,7 @@ anticongestion_sleeptime=60 anticongestion fi - /usr/sbin/traceroute6 ${daily_local_ipv6_refresh_flags} "${ipv6_defaultrouter}" + /usr/sbin/traceroute6 ${daily_local_ipv6_refresh_flags} "${daily_local_ipv6_refresh_target}" rc=$? ;; esac
