diff options
| author | Mike Sul <ext-mykhaylo.sul@here.com> | 2019-05-15 11:17:41 +0300 |
|---|---|---|
| committer | Eugene Smirnov <evgenii.smirnov@here.com> | 2019-07-17 18:23:46 +0200 |
| commit | ca4c0fac901fcf73be1af70f8fc1c7cd0644557a (patch) | |
| tree | d0e2b3442bd8bbe91f85fdd4c2262f1316bb720a | |
| parent | d94c2017476149ec061aa8968153cfb6d426a007 (diff) | |
| download | meta-updater-ca4c0fac901fcf73be1af70f8fc1c7cd0644557a.tar.gz | |
OTA-2541: Network configuration on IP/Posix Secondary
Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com>
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| -rwxr-xr-x | recipes-sota/aktualizr/aktualizr_git.bb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb index a49095a..60c5838 100755 --- a/recipes-sota/aktualizr/aktualizr_git.bb +++ b/recipes-sota/aktualizr/aktualizr_git.bb | |||
| @@ -120,6 +120,14 @@ do_install_append () { | |||
| 120 | fi | 120 | fi |
| 121 | fi | 121 | fi |
| 122 | 122 | ||
| 123 | if [ -n "${SOTA_SECONDARY_NETWORK_CONFIG}" ]; then | ||
| 124 | if [ -f "${SOTA_SECONDARY_NETWORK_CONFIG}" ]; then | ||
| 125 | install -m 0644 ${SOTA_SECONDARY_NETWORK_CONFIG} ${D}/${libdir}/sota/conf.d/35-secondary-network-config.toml | ||
| 126 | else | ||
| 127 | bbwarn "SOTA_SECONDARY_NETWORK_CONFIG is set to a non-existent file (${SOTA_SECONDARY_NETWORK_CONFIG})" | ||
| 128 | fi | ||
| 129 | fi | ||
| 130 | |||
| 123 | install -m 0755 -d ${D}${systemd_unitdir}/system | 131 | install -m 0755 -d ${D}${systemd_unitdir}/system |
| 124 | aktualizr_service=${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'serialcan', '${WORKDIR}/aktualizr-serialcan.service', '${WORKDIR}/aktualizr.service', d)} | 132 | aktualizr_service=${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'serialcan', '${WORKDIR}/aktualizr-serialcan.service', '${WORKDIR}/aktualizr.service', d)} |
| 125 | install -m 0644 ${aktualizr_service} ${D}${systemd_unitdir}/system/aktualizr.service | 133 | install -m 0644 ${aktualizr_service} ${D}${systemd_unitdir}/system/aktualizr.service |
