feat(bms): discover JK batteries and integrate read-only telemetry scenes
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
"""Versioned BMS runtime and access policy shipped by the Node installer."""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def payload():
|
||||
root = Path(__file__).resolve().parents[1]
|
||||
result = [
|
||||
("usr/lib/mission-core-jk-bms/runtime/" + p.name, p.read_bytes(), 0o644)
|
||||
for p in sorted((root / "runtime").glob("*.py"))
|
||||
]
|
||||
for name, target in [
|
||||
("mission-core-jk-bms.service", "usr/lib/systemd/system/"),
|
||||
("mission-core-jk-bms.conf", "usr/share/dbus-1/system.d/"),
|
||||
]:
|
||||
result.append((target + name, (root / "packaging" / name).read_bytes(), 0o644))
|
||||
return result
|
||||
Reference in New Issue
Block a user