# HG changeset patch # User Franz Glasner # Date 1661410399 -7200 # Node ID 7d07c4e214ee895c9e7af56a0c35b26b482258f9 # Parent b9cdf45a2d27826065b6a4298e274e03ee3c2fc5 Allow to customize the traceroute target for the IPv6 refresh periodic task diff -r b9cdf45a2d27 -r 7d07c4e214ee etc/periodic/daily/800.local-ipv6-refresh --- 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