man: remove sentence about order of DHCP clients

The list describing the order of DHCP clients is confusing because it
doesn't take into account what clients are disabled at build
time. Instead, just show the available clients in the preferred order.
This commit is contained in:
Beniamino Galvani
2025-01-15 16:26:24 +01:00
parent 774484eed6
commit d0330fb909
2 changed files with 2 additions and 4 deletions

View File

@@ -174,9 +174,7 @@ plugins-=remove-me
<para>The <literal>internal</literal> client is built-in, while other options <para>The <literal>internal</literal> client is built-in, while other options
may require an external DHCP client to be installed.</para> may require an external DHCP client to be installed.</para>
<para>If this key is missing, <literal>&NM_CONFIG_DEFAULT_MAIN_DHCP;</literal> <para>If this key is missing, <literal>&NM_CONFIG_DEFAULT_MAIN_DHCP;</literal>
is used with a fallback to other suppored clients in this order: is used with a fallback to other supported clients.</para></listitem>
<literal>internal</literal>, <literal>dhcpcd</literal>,
<literal>dhclient</literal>.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>no-auto-default</varname></term> <term><varname>no-auto-default</varname></term>

View File

@@ -633,7 +633,7 @@ config_dhcp_default = get_option('config_dhcp_default')
config_h.set_quoted('NM_CONFIG_DEFAULT_MAIN_DHCP', config_dhcp_default) config_h.set_quoted('NM_CONFIG_DEFAULT_MAIN_DHCP', config_dhcp_default)
config_dhcp_clients_enabled = [ 'internal' ] config_dhcp_clients_enabled = [ 'internal' ]
dhcp_summary = '' dhcp_summary = ''
foreach client : [ 'dhclient', 'dhcpcd' ] foreach client : [ 'dhcpcd', 'dhclient' ]
client_path = get_option(client) client_path = get_option(client)
client_enable = (client_path != 'no') client_enable = (client_path != 'no')
if client_enable if client_enable