summaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-core/recipes-connectivity/connman/connman_%.bbappend
blob: 469345880fca98e90662a6b76628631420757e98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI += "file://0001-disable-when-booting-over-nfs.patch \
            file://main.conf \
"

FILES_${PN} += "${sysconfdir}/connman/main.conf"

PACKAGECONFIG[session-policy-local] = "--enable-session-policy-local,--disable-session-policy-local,"
PACKAGECONFIG_append = " session-policy-local"

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
		sed -i 's/^\(NetworkInterfaceBlacklist=.*\)/\1,eth1/' ${D}${sysconfdir}/connman/main.conf
	fi
}