package/iwd: install upstream main.conf

Note this changes EnableNetworkConfiguration from true to false
according to the upstream default, users who want a standalone iwd
setup which handles DHCP will need to adjust the config. Adjusting
NameResolvingService according to selected packages is unlikely to
have unexpected effects, so keep that.

This makes iwd work as a drop-in replacement for wpa_supplicant with
NetworkManager.

Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
This commit is contained in:
Fiona Klute
2026-06-04 17:54:30 +02:00
committed by Marcus Hoffmann
parent 2c80df91c2
commit 8536a5d04a
2 changed files with 2 additions and 7 deletions

View File

@@ -51,8 +51,8 @@ IWD_CONF_OPTS += --disable-monitor
endif
define IWD_INSTALL_CONFIG_FILE
$(INSTALL) -D -m 644 package/iwd/main.conf $(TARGET_DIR)/etc/iwd/main.conf
$(SED) 's,__RESOLV_SERVICE__,$(IWD_RESOLV_SERVICE),' $(TARGET_DIR)/etc/iwd/main.conf
$(INSTALL) -D -m 644 $(@D)/doc/main.conf $(TARGET_DIR)/etc/iwd/main.conf
$(SED) 's,#\?\(NameResolvingService\)=.*,\1=$(IWD_RESOLV_SERVICE),' $(TARGET_DIR)/etc/iwd/main.conf
endef
IWD_POST_INSTALL_TARGET_HOOKS += IWD_INSTALL_CONFIG_FILE

View File

@@ -1,5 +0,0 @@
# use built-in dhcp client
[General]
EnableNetworkConfiguration=true
[Network]
NameResolvingService=__RESOLV_SERVICE__