diff options
Diffstat (limited to 'meta/recipes-connectivity/connman/connman-conf.bb')
-rw-r--r-- | meta/recipes-connectivity/connman/connman-conf.bb | 39 |
1 files changed, 12 insertions, 27 deletions
diff --git a/meta/recipes-connectivity/connman/connman-conf.bb b/meta/recipes-connectivity/connman/connman-conf.bb index 9a519ec866..a1a0e08faa 100644 --- a/meta/recipes-connectivity/connman/connman-conf.bb +++ b/meta/recipes-connectivity/connman/connman-conf.bb | |||
@@ -1,36 +1,21 @@ | |||
1 | SUMMARY = "Connman config to setup wired interface on qemu machines" | 1 | SUMMARY = "Connman config to ignore wired interface on qemu machines" |
2 | DESCRIPTION = "This is the ConnMan configuration to set up a Wired \ | 2 | DESCRIPTION = "This is the ConnMan configuration to avoid touching wired \ |
3 | network interface for a qemu machine." | 3 | network interface inside qemu machines." |
4 | LICENSE = "GPLv2" | 4 | LICENSE = "GPL-2.0-only" |
5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" | 5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" |
6 | 6 | ||
7 | inherit systemd | ||
8 | 7 | ||
9 | SRC_URI_append_qemuall = " file://wired.config \ | 8 | SRC_URI = "file://main.conf \ |
10 | file://wired-setup \ | 9 | " |
11 | file://wired-connection.service \ | ||
12 | " | ||
13 | PR = "r2" | ||
14 | 10 | ||
15 | S = "${WORKDIR}" | 11 | S = "${WORKDIR}" |
16 | 12 | ||
17 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 13 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
18 | 14 | ||
19 | FILES_${PN} = "${localstatedir}/* ${datadir}/*" | 15 | FILES:${PN} = "${sysconfdir}/*" |
20 | 16 | ||
21 | do_install() { | 17 | # Kernel IP-Config is perfectly capable of setting up networking passed in via ip= |
22 | #Configure Wired network interface in case of qemu* machines | 18 | do_install:append:qemuall() { |
23 | if test -e ${WORKDIR}/wired.config && | 19 | mkdir -p ${D}${sysconfdir}/connman |
24 | test -e ${WORKDIR}/wired-setup && | 20 | cp ${S}/main.conf ${D}${sysconfdir}/connman/main.conf |
25 | test -e ${WORKDIR}/wired-connection.service; then | ||
26 | install -d ${D}${localstatedir}/lib/connman | ||
27 | install -m 0644 ${WORKDIR}/wired.config ${D}${localstatedir}/lib/connman | ||
28 | install -d ${D}${datadir}/connman | ||
29 | install -m 0755 ${WORKDIR}/wired-setup ${D}${datadir}/connman | ||
30 | install -d ${D}${systemd_system_unitdir} | ||
31 | install -m 0644 ${WORKDIR}/wired-connection.service ${D}${systemd_system_unitdir} | ||
32 | sed -i -e 's|@SCRIPTDIR@|${datadir}/connman|g' ${D}${systemd_system_unitdir}/wired-connection.service | ||
33 | fi | ||
34 | } | 21 | } |
35 | |||
36 | SYSTEMD_SERVICE_${PN}_qemuall = "wired-connection.service" | ||