From cf9aee639780ed0f065a0418f423e22e51912909 Mon Sep 17 00:00:00 2001 From: pierantoniomerlino Date: Fri, 27 Sep 2024 12:47:40 +0200 Subject: [PATCH] Modified dhcp server selection order Signed-off-by: pierantoniomerlino --- .../eclipse/kura/linux/net/dhcp/DhcpServerManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kura/org.eclipse.kura.linux.net/src/main/java/org/eclipse/kura/linux/net/dhcp/DhcpServerManager.java b/kura/org.eclipse.kura.linux.net/src/main/java/org/eclipse/kura/linux/net/dhcp/DhcpServerManager.java index 6019f168692..a6ee0ad1d69 100644 --- a/kura/org.eclipse.kura.linux.net/src/main/java/org/eclipse/kura/linux/net/dhcp/DhcpServerManager.java +++ b/kura/org.eclipse.kura.linux.net/src/main/java/org/eclipse/kura/linux/net/dhcp/DhcpServerManager.java @@ -58,12 +58,12 @@ public DhcpServerManager(CommandExecutorService service) { public static DhcpServerTool getTool() { if (dhcpServerTool == DhcpServerTool.NONE) { - if (LinuxNetworkUtil.toolExists(DhcpServerTool.DHCPD.getValue())) { - dhcpServerTool = DhcpServerTool.DHCPD; + if (LinuxNetworkUtil.toolExists(DhcpServerTool.DNSMASQ.getValue())) { + dhcpServerTool = DhcpServerTool.DNSMASQ; } else if (LinuxNetworkUtil.toolExists(DhcpServerTool.UDHCPD.getValue())) { dhcpServerTool = DhcpServerTool.UDHCPD; - } else if (LinuxNetworkUtil.toolExists(DhcpServerTool.DNSMASQ.getValue())) { - dhcpServerTool = DhcpServerTool.DNSMASQ; + } else if (LinuxNetworkUtil.toolExists(DhcpServerTool.DHCPD.getValue())) { + dhcpServerTool = DhcpServerTool.DHCPD; } }