2020-12-25T03:00:14 opnsense[939] /usr/local/etc/rc.linkup: DEVD Ethernet detached event for lan
#!/bin/sh# Script to test IPv6 connectivity and restart dhcp6c if necessary# Try a few pings to Cloudflare's IPv6 servers.# Quit immediately if we get a single frame back.# If neither server responds at all then restart dhcp6c.counting=$(ping6 -o -c 10 2606:4700:4700::1111 | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')if [ $counting -eq 0 ]; then counting=$(ping6 -o -c 10 2606:4700:4700::1001 | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }') if [ $counting -eq 0 ]; then # Restart dhcp6c service dhcp6c restart fifi
[load]command:/usr/local/sbin/ping6_check.shparameters:type:scriptmessage:starting IPv6 connectivity checkdescription:Run IPv6 check
service configd restart