mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 13:33:28 +08:00
nss-mdns: do not unconditionally override hosts: line in nsswitch.conf
Instead, add mdns4_minimal / mdns4 around the dns entry if missing. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
7ce5670330
commit
27d22993ba
@ -9,8 +9,9 @@ NSS_MDNS_SITE = http://0pointer.de/lennart/projects/nss-mdns
|
||||
NSS_MDNS_LICENSE = LGPL-2.1+
|
||||
NSS_MDNS_LICENSE_FILES = LICENSE
|
||||
|
||||
# add mdns4_minimal / mdns around the dns provider if missing
|
||||
define NSS_MDNS_INSTALL_CONFIG
|
||||
sed -r -i -e 's/^(hosts:[[:space:]]+).*/\1files mdns4_minimal [NOTFOUND=return] dns mdns4/' \
|
||||
$(SED) '/^hosts:/ {/mdns4/! s/dns/mdns4_minimal [NOTFOUND=return] dns mdns4/}' \
|
||||
$(TARGET_DIR)/etc/nsswitch.conf
|
||||
endef
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user