diff --git a/patches/0079-busybox-do-not-use-pool-servers-if-DHCP-provided-NTP.patch b/patches/0079-busybox-do-not-use-pool-servers-if-DHCP-provided-NTP.patch new file mode 100644 index 000000000..5825dfee4 --- /dev/null +++ b/patches/0079-busybox-do-not-use-pool-servers-if-DHCP-provided-NTP.patch @@ -0,0 +1,26 @@ +From 67e6c655dd421afe06681ba43bfacfb6e7deb685 Mon Sep 17 00:00:00 2001 +From: John Crispin +Date: Tue, 12 Nov 2024 10:41:14 +0100 +Subject: [PATCH] busybox: do not use pool servers if DHCP provided NTP + +Signed-off-by: John Crispin +--- + package/utils/busybox/files/sysntpd | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/package/utils/busybox/files/sysntpd b/package/utils/busybox/files/sysntpd +index 074f14b8f8..43b8b6eec5 100755 +--- a/package/utils/busybox/files/sysntpd ++++ b/package/utils/busybox/files/sysntpd +@@ -18,6 +18,8 @@ get_dhcp_ntp_servers() { + + ntpservers=$(ubus call network.interface dump | jsonfilter -e "@.interface[$filter]['data']['ntpserver']") + ++ [ -n "$ntpservers" ] && server="" ++ + for ntpserver in $ntpservers; do + local duplicate=0 + local entry +-- +2.34.1 +