Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
changeset 189:e292d85338b3
Handle empty $ipv6_defaultrouter values more explicitely
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 19 Aug 2022 02:00:20 +0200 |
| parents | cf4097c83691 |
| children | 0ad969bd3c19 |
| files | etc/periodic/daily/800.local-ipv6-refresh |
| diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/etc/periodic/daily/800.local-ipv6-refresh Fri Aug 19 01:46:16 2022 +0200 +++ b/etc/periodic/daily/800.local-ipv6-refresh Fri Aug 19 02:00:20 2022 +0200 @@ -41,12 +41,16 @@ echo 1>&2 "$0: WARNING: \$daily_local_ipv6_refresh_enable is not set properly - assuming \"NO\" has been set" exit 0 ;; -esac +esac case "${ipv6_defaultrouter}" in [Nn][Oo]) # SKIP because no IP static IPv6 router given ;; +'') + # SKIP because this is an unresolvable router specification + echo 1>&2 "$0: WARNING: \$ipv6_defaultrouter has an unexpected empty value" + ;; *) if type anticongestion >/dev/null 2>&1; then anticongestion_sleeptime=60
