summaryrefslogtreecommitdiffstats
path: root/recipes-sota/aktualizr/environment.inc
diff options
context:
space:
mode:
authorAnton Gerasimov <anton@advancedtelematic.com>2017-12-04 16:14:31 +0100
committerAnton Gerasimov <anton@advancedtelematic.com>2017-12-04 16:14:31 +0100
commit3e2f51ec1a3af07064ebdcd522310c9623f78ff0 (patch)
tree61e8e7bf6e27f32b6216c0875950e831befe3054 /recipes-sota/aktualizr/environment.inc
parent0643f7204cf0fa34e513563772431c0e293074bc (diff)
downloadmeta-updater-3e2f51ec1a3af07064ebdcd522310c9623f78ff0.tar.gz
Add support for virtual secondaries
Diffstat (limited to 'recipes-sota/aktualizr/environment.inc')
-rw-r--r--recipes-sota/aktualizr/environment.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/recipes-sota/aktualizr/environment.inc b/recipes-sota/aktualizr/environment.inc
index a811508..cba77e7 100644
--- a/recipes-sota/aktualizr/environment.inc
+++ b/recipes-sota/aktualizr/environment.inc
@@ -1,10 +1,17 @@
1export SOTA_LEGACY_SECONDARY_INTERFACE
2export SOTA_VIRTUAL_SECONDARIES
3
1do_install_append() { 4do_install_append() {
2 if [ -n "${SOTA_LEGACY_SECONDARY_INTERFACE}" ]; then 5 if [ -n "${SOTA_LEGACY_SECONDARY_INTERFACE}" ]; then
3 AKTUALIZR_PARAMETERS_LEGACYSEC="--legacy-interface ${SOTA_LEGACY_SECONDARY_INTERFACE}"; 6 AKTUALIZR_PARAMETERS_LEGACYSEC="--legacy-interface ${SOTA_LEGACY_SECONDARY_INTERFACE}";
4 fi 7 fi
5 8
6 AKTUALIZR_PARAMETERS_CONFIGFILE="--config /usr/lib/sota/sota.toml" 9 AKTUALIZR_PARAMETERS_CONFIGFILE="--config /usr/lib/sota/sota.toml"
7 echo "AKTUALIZR_CMDLINE_PARAMETERS=${AKTUALIZR_PARAMETERS_CONFIGFILE} ${AKTUALIZR_PARAMETERS_LEGACYSEC}" > ${D}${libdir}/sota/sota.env 10 for sec in ${SOTA_VIRTUAL_SECONDARIES}; do
11 AKTUALIZR_PARAMETERS_VIRTUALSECS="${AKTUALIZR_PARAMETERS_VIRTUALSECS} --secondary-config $sec"
12 done
13
14 echo "AKTUALIZR_CMDLINE_PARAMETERS=${AKTUALIZR_PARAMETERS_CONFIGFILE} ${AKTUALIZR_PARAMETERS_LEGACYSEC} ${AKTUALIZR_PARAMETERS_VIRTUALSECS}" > ${D}${libdir}/sota/sota.env
8} 15}
9 16
10FILES_${PN}_append = " ${libdir}/sota/sota.env" 17FILES_${PN}_append = " ${libdir}/sota/sota.env"