diff options
author | Mike Sul <ext-mykhaylo.sul@here.com> | 2019-05-15 11:17:41 +0300 |
---|---|---|
committer | Mike Sul <ext-mykhaylo.sul@here.com> | 2019-05-27 10:40:00 +0300 |
commit | 1d05d369f2820e836e7f65aa45cf0775e6a875f0 (patch) | |
tree | 2ed762b29d312981e09ca6a307c036875fcd64f7 /recipes-sota | |
parent | a6c241c31f0afbf762a230db4b92c1758db66158 (diff) | |
download | meta-updater-1d05d369f2820e836e7f65aa45cf0775e6a875f0.tar.gz |
OTA-2541: Network configuration on IP/Posix Secondary
Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com>
Diffstat (limited to 'recipes-sota')
-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 903f2de..db8cf38 100755 --- a/recipes-sota/aktualizr/aktualizr_git.bb +++ b/recipes-sota/aktualizr/aktualizr_git.bb | |||
@@ -119,6 +119,14 @@ do_install_append () { | |||
119 | fi | 119 | fi |
120 | fi | 120 | fi |
121 | 121 | ||
122 | if [ -n "${SOTA_SECONDARY_NETWORK_CONFIG}" ]; then | ||
123 | if [ -f "${SOTA_SECONDARY_NETWORK_CONFIG}" ]; then | ||
124 | install -m 0644 ${SOTA_SECONDARY_NETWORK_CONFIG} ${D}/${libdir}/sota/conf.d/35-secondary-network-config.toml | ||
125 | else | ||
126 | bbwarn "SOTA_SECONDARY_NETWORK_CONFIG is set to a non-existent file (${SOTA_SECONDARY_NETWORK_CONFIG})" | ||
127 | fi | ||
128 | fi | ||
129 | |||
122 | install -m 0755 -d ${D}${systemd_unitdir}/system | 130 | install -m 0755 -d ${D}${systemd_unitdir}/system |
123 | aktualizr_service=${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'serialcan', '${WORKDIR}/aktualizr-serialcan.service', '${WORKDIR}/aktualizr.service', d)} | 131 | aktualizr_service=${@bb.utils.contains('SOTA_CLIENT_FEATURES', 'serialcan', '${WORKDIR}/aktualizr-serialcan.service', '${WORKDIR}/aktualizr.service', d)} |
124 | install -m 0644 ${aktualizr_service} ${D}${systemd_unitdir}/system/aktualizr.service | 132 | install -m 0644 ${aktualizr_service} ${D}${systemd_unitdir}/system/aktualizr.service |