# HG changeset patch # User Franz Glasner # Date 1660864622 -7200 # Node ID 39e5b947a28eca35f315d4c3bce456789c25cc84 # Parent 487571161032f597ea48ae0014b7565604dd7b32 Create a periodic script to keep the IPv6 routing working. Just added from existing sources. diff -r 487571161032 -r 39e5b947a28e Makefile --- a/Makefile Thu Aug 18 23:58:39 2022 +0200 +++ b/Makefile Fri Aug 19 01:17:02 2022 +0200 @@ -45,8 +45,8 @@ ${SED} -i "" -e "s|@@ETCDIR@@|${ETCDIR}|" ${WRKSRC}/${_rp} ${SED} -i "" -e "s|@@PKGORIGIN@@|${PKGORIGIN}|" ${WRKSRC}/${_rp} .endfor - ${MKDIR} ${WRKSRC}/etc -.for _ef in etc/package-mapping.conf.sample etc/pkgtools.conf.sample etc/bsmtp2dma.conf.sample + ${MKDIR} ${WRKSRC}/etc/periodic/daily +.for _ef in etc/package-mapping.conf.sample etc/pkgtools.conf.sample etc/bsmtp2dma.conf.sample etc/periodic/daily/800.local-ipv6-refresh ${CP} -v ${SRC}/${_ef} ${WRKSRC}/${_ef} ${SED} -i "" -e "s|\\\$$HGid\\\$$|\$$HGid: ${HGPATH}/${_ef} ${HGREVISION} ${HGDATE} ${HGAUTHOR} ${HGPHASE} \$$|" ${WRKSRC}/${_ef} ${SED} -i "" -e "s|@@PKGORIGIN@@|${PKGORIGIN}|" ${WRKSRC}/${_ef} @@ -60,5 +60,10 @@ .for _ef in package-mapping.conf.sample pkgtools.conf.sample bsmtp2dma.conf.sample ${INSTALL_DATA} ${WRKSRC}/etc/${_ef} ${STAGEDIR}${ETCDIR}/${_ef} .endfor + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily +.for _ps in 800.local-ipv6-refresh + ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/daily/${_ps} ${STAGEDIR}${PREFIX}/etc/periodic/daily +.endfor + .include diff -r 487571161032 -r 39e5b947a28e etc/periodic/daily/800.local-ipv6-refresh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/etc/periodic/daily/800.local-ipv6-refresh Fri Aug 19 01:17:02 2022 +0200 @@ -0,0 +1,39 @@ +#!/bin/sh +# +# @(#)@@PKGORIGIN@@ $HGid$ +# + +# If there is a global system configuration file, suck it in. +if [ -r /etc/defaults/periodic.conf ] +then + . /etc/defaults/periodic.conf + source_periodic_confs +fi + +# +# Source in RC configurations also because we need the value of the +# IPv6 default router (if any). +# +if [ -r /etc/defaults/rc.conf ] +then + . /etc/defaults/rc.conf + source_rc_confs +fi + +rc=0 + +case "${ipv6_defaultrouter}" in + [Nn][Oo]) + # SKIP because no IP static IPv6 router given + ;; + *) + if type anticongestion >/dev/null 2>&1; then + anticongestion_sleeptime=60 + anticongestion + fi + /usr/sbin/traceroute6 -n -w2 -q2 -m1 -I "${ipv6_defaultrouter}" + rc=$? + ;; +esac + +exit $rc diff -r 487571161032 -r 39e5b947a28e pkg-plist --- a/pkg-plist Thu Aug 18 23:58:39 2022 +0200 +++ b/pkg-plist Fri Aug 19 01:17:02 2022 +0200 @@ -1,4 +1,5 @@ @comment FILES +etc/periodic/daily/800.local-ipv6-refresh sbin/bsmtp2dma sbin/check-ports sbin/fjail