summaryrefslogtreecommitdiffstats
path: root/recipes-sota/aktualizr/files
diff options
context:
space:
mode:
authorAnton Gerasimov <anton@advancedtelematic.com>2017-12-22 19:14:16 +0100
committerAnton Gerasimov <anton.gerasimov@openmailbox.org>2018-01-08 15:18:13 +0100
commit537de14d5018f9525964e7d4c64d736e9186c696 (patch)
treedde83617d1e109a978296f6a3ad508b26b5b4f65 /recipes-sota/aktualizr/files
parent2f5b892d318f9b22747aed4618d3f15728de9980 (diff)
downloadmeta-updater-537de14d5018f9525964e7d4c64d736e9186c696.tar.gz
Add support of ISO/TP legacy secondaries and serial CAN
Diffstat (limited to 'recipes-sota/aktualizr/files')
-rw-r--r--recipes-sota/aktualizr/files/aktualizr-serialcan.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes-sota/aktualizr/files/aktualizr-serialcan.service b/recipes-sota/aktualizr/files/aktualizr-serialcan.service
new file mode 100644
index 0000000..b42f348
--- /dev/null
+++ b/recipes-sota/aktualizr/files/aktualizr-serialcan.service
@@ -0,0 +1,15 @@
1[Unit]
2Description=Aktualizr SOTA Client
3Wants=network-online.target slcand@ttyACM0.service
4After=network.target network-online.target slcand@ttyACM0.service
5
6Requires=network-online.target
7
8[Service]
9RestartSec=10
10Restart=always
11EnvironmentFile=/usr/lib/sota/sota.env
12ExecStart=/bin/sh -c "(ip addr | grep can0) && /usr/bin/aktualizr $AKTUALIZR_CMDLINE_PARAMETERS"
13
14[Install]
15WantedBy=multi-user.target