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; } }