diff options
author | Anton Gerasimov <anton@advancedtelematic.com> | 2017-12-04 14:50:26 +0100 |
---|---|---|
committer | Anton Gerasimov <anton@advancedtelematic.com> | 2017-12-04 15:50:54 +0100 |
commit | 0643f7204cf0fa34e513563772431c0e293074bc (patch) | |
tree | 288ad69a9fc61717ffbe68526234896c1d1b1a3f /recipes-sota/aktualizr/environment.inc | |
parent | 3289bddc47d52673495c5274cf5a62f98c41dc9b (diff) | |
download | meta-updater-0643f7204cf0fa34e513563772431c0e293074bc.tar.gz |
Provide user interface to add legacy secondary bridge
Diffstat (limited to 'recipes-sota/aktualizr/environment.inc')
-rw-r--r-- | recipes-sota/aktualizr/environment.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes-sota/aktualizr/environment.inc b/recipes-sota/aktualizr/environment.inc new file mode 100644 index 0000000..a811508 --- /dev/null +++ b/recipes-sota/aktualizr/environment.inc | |||
@@ -0,0 +1,10 @@ | |||
1 | do_install_append() { | ||
2 | if [ -n "${SOTA_LEGACY_SECONDARY_INTERFACE}" ]; then | ||
3 | AKTUALIZR_PARAMETERS_LEGACYSEC="--legacy-interface ${SOTA_LEGACY_SECONDARY_INTERFACE}"; | ||
4 | fi | ||
5 | |||
6 | 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 | ||
8 | } | ||
9 | |||
10 | FILES_${PN}_append = " ${libdir}/sota/sota.env" | ||