!/usr/bin/bashALIAS1="AD1"ALIAS2="AD2"IPV6_ADDR1=$(pfctl -t "$ALIAS1" -T show | grep ":" | head -n 1 | sed 's/^[[:space:]]*//')IPV6_ADDR2=$(pfctl -t "$ALIAS2" -T show | grep ":" | head -n 1 | sed 's/^[[:space:]]*//')if [ -z "$IPV6_ADDR1" ]; then echo "Error for ($ALIAS1)." exit 1fiif [ -z "$IPV6_ADDR2" ]; then echo "Error for ($ALIAS2)." exit 1ficp /conf/config.xml /conf/config.xml.baksed -i "" "/<dhcpdv6>/,/<\/dhcpdv6>/{ s#<dnsserver>.*</dnsserver>#<dnsserver>$IPV6_ADDR1</dnsserver>#; /<dnsserver>/ { n s#<dnsserver>.*</dnsserver>#<dnsserver>$IPV6_ADDR2</dnsserver># }}" /conf/config.xmlgrep -A 5 "<dhcpdv6>" /conf/config.xmlpluginctl -s dhcpd6 restartADDR2."
[wake]command:/usr/local/bin/update_dhcpv6_dns.shtype:scriptdescription:DHCPv6 UPDT prefix DNS serversmessage:UPDT DNS Servers DHCPv6