File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,7 +131,9 @@ remove_ntp_conf()
131131# For ease of use, map DHCP6 names onto our DHCP4 names
132132case "$reason" in
133133BOUND6|RENEW6|REBIND6|REBOOT6|INFORM6)
134- new_ntp_servers="$new_dhcp6_sntp_servers $new_dhcp6_ntp_server_addr $new_dhcp6_ntp_server_fqdn"
134+ new_ntp_servers="$new_dhcp6_sntp_servers"
135+ new_ntp_servers="$new_ntp_servers${new_ntp_servers:+ }$new_dhcp6_ntp_server_addr"
136+ new_ntp_servers="$new_ntp_servers${new_ntp_servers:+ }$new_dhcp6_ntp_server_fqdn"
135137;;
136138esac
137139
Original file line number Diff line number Diff line change @@ -54,7 +54,9 @@ add_timesyncd_conf()
5454# For ease of use, map DHCP6 names onto our DHCP4 names
5555case "$reason" in
5656BOUND6|RENEW6|REBIND6|REBOOT6|INFORM6)
57- new_ntp_servers="$new_dhcp6_sntp_servers $new_dhcp6_ntp_server_addr $new_dhcp6_ntp_server_fqdn"
57+ new_ntp_servers="$new_dhcp6_sntp_servers"
58+ new_ntp_servers="$new_ntp_servers${new_ntp_servers:+ }$new_dhcp6_ntp_server_addr"
59+ new_ntp_servers="$new_ntp_servers${new_ntp_servers:+ }$new_dhcp6_ntp_server_fqdn"
5860;;
5961esac
6062
You can’t perform that action at this time.
0 commit comments