feat(fleet): preserve operator VESC integration before final driver merge

This commit is contained in:
DCCONSTRUCTIONS
2026-09-25 16:40:46 +03:00
parent dad11b47d7
commit 71a648fec8
128 changed files with 22390 additions and 59 deletions
+4
View File
@@ -2,6 +2,7 @@
set -eu
case "$1" in
configure)
/usr/bin/python3 -I /usr/lib/mission-core-vesc/clear_runtime_cache.py
if ! getent passwd mission-core-node >/dev/null; then
adduser --system --group --home /var/lib/mission-core-node --no-create-home --disabled-login mission-core-node
fi
@@ -15,6 +16,9 @@ case "$1" in
systemctl enable mission-core-node.service
systemctl restart mission-core-node.service
systemctl try-restart mission-core-realsense.service
if [ -f /var/lib/mission-core-node-profiles/vesc/preparation.json ]; then
systemctl start mission-core-node-vesc-prepare.service
fi
if [ -f /run/mission-core-node-k1-upgrade-active ]; then
# A jointly upgraded plugin starts itself after its own configuration.
# Restore it here only when that package is already configured.