summaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-core
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2018-12-07 11:49:15 -0500
committerScott Murray <scott.murray@konsulko.com>2018-12-10 18:49:02 +0000
commit105a179b8b21d339ca9b5dd04d7ef15bab4ad820 (patch)
tree1e442975bd6a3b2319b3fe42ed0ee6b952000445 /meta-agl-profile-core
parent1d32761ed7d757fb37b7ee5393cc332107017019 (diff)
connman: Tweak main.conf for cluster demo support
When running the cluster demo, we do not want the second ethernet interface managed by connman, as it will be used for a separate connection to the cluster board, and should not be considered part of the shared connection pool. To do this, NetworkInterfaceBlacklist is tweaked if agl-cluster-demo-support is enabled. Change-Id: Iab8c17662bb7f5b06b5eda6c97dd32a6c5ef3f5a Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'meta-agl-profile-core')
-rw-r--r--meta-agl-profile-core/recipes-connectivity/connman/connman_%.bbappend5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-agl-profile-core/recipes-connectivity/connman/connman_%.bbappend b/meta-agl-profile-core/recipes-connectivity/connman/connman_%.bbappend
index 57406fa0a..98729400c 100644
--- a/meta-agl-profile-core/recipes-connectivity/connman/connman_%.bbappend
+++ b/meta-agl-profile-core/recipes-connectivity/connman/connman_%.bbappend
@@ -9,4 +9,9 @@ FILES_${PN} += "${sysconfdir}/connman/main.conf"
do_install_append() {
install -d ${D}${sysconfdir}/connman
install -m 0644 ${WORKDIR}/main.conf ${D}${sysconfdir}/connman
+
+ # Need to ignore eth1 in cluster demo setup
+ if ${@bb.utils.contains('DISTRO_FEATURES', 'agl-cluster-demo-support', 'true', 'false', d)}; then
+ echo "NetworkInterfaceBlacklist=vmnet,vboxnet,virbr,ifb,eth1" >> ${D}${sysconfdir}/connman/main.conf
+ fi
}