]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Respect DHCPv6 for prior
authorRoy Marples <roy@marples.name>
Tue, 9 Aug 2022 16:56:44 +0000 (17:56 +0100)
committerRoy Marples <roy@marples.name>
Tue, 9 Aug 2022 16:56:44 +0000 (17:56 +0100)
hooks/50-timesyncd.conf

index 7cf78b17f20c96d627de9b376d462901a3f67131..8ebd09c1c590c317d6921484b233954bdfa48364 100644 (file)
@@ -33,6 +33,13 @@ add_timesyncd_conf()
        fi
 }
 
+# For ease of use, map DHCP6 names onto our DHCP4 names
+case "$reason" in
+BOUND6|RENEW6|REBIND6|REBOOT6|INFORM6)
+       new_ntp_servers="$new_dhcp6_sntp_servers"
+;;
+esac
+
 if $if_configured; then
        if $if_up; then
                add_timesyncd_conf