diff options
Diffstat (limited to 'meta/recipes-connectivity/connman/connman-conf.bb')
| -rw-r--r-- | meta/recipes-connectivity/connman/connman-conf.bb | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/meta/recipes-connectivity/connman/connman-conf.bb b/meta/recipes-connectivity/connman/connman-conf.bb index 006f976997..97ac49818c 100644 --- a/meta/recipes-connectivity/connman/connman-conf.bb +++ b/meta/recipes-connectivity/connman/connman-conf.bb | |||
| @@ -1,36 +1,19 @@ | |||
| 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 = "GPLv2" |
| 5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" | 5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" |
| 6 | 6 | ||
| 7 | inherit systemd | ||
| 8 | |||
| 9 | SRC_URI:append:qemuall = " file://wired.config \ | ||
| 10 | file://wired-setup \ | ||
| 11 | file://wired-connection.service \ | ||
| 12 | " | ||
| 13 | PR = "r2" | 7 | PR = "r2" |
| 14 | 8 | ||
| 15 | S = "${WORKDIR}" | 9 | S = "${WORKDIR}" |
| 16 | 10 | ||
| 17 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 11 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 18 | 12 | ||
| 19 | FILES:${PN} = "${localstatedir}/* ${datadir}/*" | 13 | FILES:${PN} = "${sysconfdir}/*" |
| 20 | 14 | ||
| 21 | do_install() { | 15 | # Kernel IP-Config is perfectly capable of setting up networking passed in via ip= |
| 22 | #Configure Wired network interface in case of qemu* machines | 16 | do_install:append:qemuall() { |
| 23 | if test -e ${WORKDIR}/wired.config && | 17 | mkdir -p ${D}${sysconfdir}/default |
| 24 | test -e ${WORKDIR}/wired-setup && | 18 | echo "export EXTRA_PARAM=\"-I eth0\"" > ${D}${sysconfdir}/default/connman |
| 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 | } | 19 | } |
| 35 | |||
| 36 | SYSTEMD_SERVICE:${PN}:qemuall = "wired-connection.service" | ||
