diff options
author | Phil Wise <phil@advancedtelematic.com> | 2018-03-27 14:06:38 +0200 |
---|---|---|
committer | Phil Wise <phil@advancedtelematic.com> | 2018-03-27 14:06:38 +0200 |
commit | de2b0f06546666aacf9dd2fce94e0134768c6a3b (patch) | |
tree | 178a61aca1440bce83557113485380f8ea3b36be /recipes-test/demo-network-config | |
parent | 7ce65035d63107605e07ecb1d923be63ecaa1ec9 (diff) | |
download | meta-updater-de2b0f06546666aacf9dd2fce94e0134768c6a3b.tar.gz |
Add SOTA client feature to enable secondary network
Also add a test for the 'primary-image'
Diffstat (limited to 'recipes-test/demo-network-config')
-rw-r--r-- | recipes-test/demo-network-config/files/27-dhcp-client-external.network | 6 | ||||
-rw-r--r-- | recipes-test/demo-network-config/secondary-network-config.bb | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/recipes-test/demo-network-config/files/27-dhcp-client-external.network b/recipes-test/demo-network-config/files/27-dhcp-client-external.network new file mode 100644 index 0000000..ba49593 --- /dev/null +++ b/recipes-test/demo-network-config/files/27-dhcp-client-external.network | |||
@@ -0,0 +1,6 @@ | |||
1 | [Match] | ||
2 | Name=enp0s3 | ||
3 | |||
4 | [Network] | ||
5 | Description=External network for secondary | ||
6 | DHCP=yes | ||
diff --git a/recipes-test/demo-network-config/secondary-network-config.bb b/recipes-test/demo-network-config/secondary-network-config.bb index 492d3ca..9091c65 100644 --- a/recipes-test/demo-network-config/secondary-network-config.bb +++ b/recipes-test/demo-network-config/secondary-network-config.bb | |||
@@ -3,7 +3,10 @@ LICENSE = "CLOSED" | |||
3 | 3 | ||
4 | inherit allarch | 4 | inherit allarch |
5 | 5 | ||
6 | SRC_URI = "file://26-dhcp-client.network" | 6 | SRC_URI = "\ |
7 | file://26-dhcp-client.network \ | ||
8 | file://27-dhcp-client-external.network \ | ||
9 | " | ||
7 | 10 | ||
8 | 11 | ||
9 | FILES_${PN} = "/usr/lib/systemd/network" | 12 | FILES_${PN} = "/usr/lib/systemd/network" |
@@ -13,4 +16,5 @@ PR = "1" | |||
13 | do_install() { | 16 | do_install() { |
14 | install -d ${D}/usr/lib/systemd/network | 17 | install -d ${D}/usr/lib/systemd/network |
15 | install -m 0644 ${WORKDIR}/26-dhcp-client.network ${D}/usr/lib/systemd/network/ | 18 | install -m 0644 ${WORKDIR}/26-dhcp-client.network ${D}/usr/lib/systemd/network/ |
19 | install -m 0644 ${WORKDIR}/27-dhcp-client-external.network ${D}/usr/lib/systemd/network/ | ||
16 | } | 20 | } |