diff options
author | lbonn <lbonn@users.noreply.github.com> | 2019-07-26 11:23:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-26 11:23:17 +0200 |
commit | e4dd74565f429b576e84972d12cc1ae2048be119 (patch) | |
tree | 338584c624a99768d795d69d29019720e63b8d15 /recipes-test/demo-network-config/network-config.inc | |
parent | 24e941d1296e960ed75206aab01d73d29d91506f (diff) | |
parent | d84228fc68aad979438b6f9e5c92fc7f2584e7ef (diff) | |
download | meta-updater-e4dd74565f429b576e84972d12cc1ae2048be119.tar.gz |
Backport/thud/secondaries and ci improvement (#548)
Backport/thud/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.inc | 17 |
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 @@ | |||
1 | SRC_URI_append = "\ | ||
2 | file://26-${CONF_TYPE}-client.network \ | ||
3 | " | ||
4 | |||
5 | SECONDARY_INTERFACE ?= "${@ 'eth0' if d.getVar('MACHINE') == 'raspberrypi3' else 'enp0s5'}" | ||
6 | |||
7 | do_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: | ||