diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2018-11-22 14:31:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-22 14:31:16 +0100 |
commit | bc678ac4ca43e43b0a0597efe434b44b832080f6 (patch) | |
tree | 75a2f55f333910476a696073d1c021e0085ac25d /recipes-sota | |
parent | 9b2d4eba69fb065e89a7127b389490a9a6d526f8 (diff) | |
parent | 4669df770116b0eb0c78e5fc7602e80137a858fe (diff) | |
download | meta-updater-bc678ac4ca43e43b0a0597efe434b44b832080f6.tar.gz |
Merge pull request #435 from advancedtelematic/feat/hardware_id
Allow setup custom hardware_id
Diffstat (limited to 'recipes-sota')
-rwxr-xr-x | recipes-sota/aktualizr/aktualizr_git.bb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb index 0d946f3..82449f0 100755 --- a/recipes-sota/aktualizr/aktualizr_git.bb +++ b/recipes-sota/aktualizr/aktualizr_git.bb | |||
@@ -70,6 +70,10 @@ do_install_append () { | |||
70 | install -m 0700 -d ${D}${libdir}/sota/conf.d | 70 | install -m 0700 -d ${D}${libdir}/sota/conf.d |
71 | install -m 0700 -d ${D}${sysconfdir}/sota/conf.d | 71 | install -m 0700 -d ${D}${sysconfdir}/sota/conf.d |
72 | 72 | ||
73 | if [ -n "${SOTA_HARDWARE_ID}" ]; then | ||
74 | echo "[provision]\nprimary_ecu_hardware_id = ${SOTA_HARDWARE_ID}\n" > ${D}${libdir}/sota/conf.d/40-hardware-id.toml | ||
75 | fi | ||
76 | |||
73 | if [ -n "${SOTA_SECONDARY_CONFIG_DIR}" ]; then | 77 | if [ -n "${SOTA_SECONDARY_CONFIG_DIR}" ]; then |
74 | if [ -d "${SOTA_SECONDARY_CONFIG_DIR}" ]; then | 78 | if [ -d "${SOTA_SECONDARY_CONFIG_DIR}" ]; then |
75 | install -m 0700 -d ${D}${sysconfdir}/sota/ecus | 79 | install -m 0700 -d ${D}${sysconfdir}/sota/ecus |