network-manager: fix DHCP clients detection.
If either dhclient or dhcpcd are selected, network-manager is now configured with the proper paths. This allows 'dhcp=dhclient' or 'dhcp=dhcpcd' to be set in /etc/NetworkManager/NetworkManager.conf. Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
a4c1e0d77a
commit
16937a45db
@ -34,6 +34,14 @@ NETWORK_MANAGER_CONF_OPT = \
|
||||
--disable-ifupdown \
|
||||
--disable-ifnet
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DHCP_CLIENT),y)
|
||||
NETWORK_MANAGER_CONF_OPT += --with-dhclient=/usr/sbin/dhclient
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DHCPCD),y)
|
||||
NETWORK_MANAGER_CONF_OPT += --with-dhcpcd=/usr/sbin/dhcpcd
|
||||
endif
|
||||
|
||||
# uClibc by default doesn't have backtrace support, so don't use it
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
||||
NETWORK_MANAGER_CONF_OPT += --disable-crashtrace
|
||||
|
Loading…
Reference in New Issue
Block a user