summaryrefslogtreecommitdiffstats
path: root/recipes-test/demo-network-config/network-config.inc
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2019-07-25 09:11:57 +0200
committerGitHub <noreply@github.com>2019-07-25 09:11:57 +0200
commit1d14d8b2b3437cfe35a37c30fa59b4bcf82324e1 (patch)
tree31aa1390f9f77f8d3d7841d8968e30f946b131e0 /recipes-test/demo-network-config/network-config.inc
parent5400f79dd9974f099bcf9f04dbe04a9f38d9e361 (diff)
parentba5e43d0217d054e0b660906b858f050f2812ec5 (diff)
downloadmeta-updater-1d14d8b2b3437cfe35a37c30fa59b4bcf82324e1.tar.gz
Merge pull request #546 from advancedtelematic/Backport/sumo/secondaries-and-CI-improvement
Backport/sumo/secondaries and ci improvement
Diffstat (limited to 'recipes-test/demo-network-config/network-config.inc')
-rw-r--r--recipes-test/demo-network-config/network-config.inc17
1 files changed, 17 insertions, 0 deletions
diff --git a/recipes-test/demo-network-config/network-config.inc b/recipes-test/demo-network-config/network-config.inc
new file mode 100644
index 0000000..ed623d4
--- /dev/null
+++ b/recipes-test/demo-network-config/network-config.inc
@@ -0,0 +1,17 @@
1SRC_URI_append = "\
2 file://26-${CONF_TYPE}-client.network \
3 "
4
5SECONDARY_INTERFACE ?= "${@ 'eth0' if d.getVar('MACHINE') == 'raspberrypi3' else 'enp0s5'}"
6
7do_install_append() {
8 bbnote "Network configuration type to be applied: ${CONF_TYPE}"
9 install -d ${D}/usr/lib/systemd/network
10 install -m 0644 ${WORKDIR}/26-${CONF_TYPE}-client.network ${D}/usr/lib/systemd/network/
11 sed -i -e 's|@ADDR@|${IP_ADDR}|g' \
12 -e 's|@IFNAME@|${SECONDARY_INTERFACE}|g' \
13 ${D}/usr/lib/systemd/network/26-${CONF_TYPE}-client.network
14
15}
16
17# vim:set ts=4 sw=4 sts=4 expandtab: