From df87d799feebe2c124ff64f25ec867ab717f3f05 Mon Sep 17 00:00:00 2001 From: MarcA711 <40744649+MarcA711@users.noreply.github.com> Date: Mon, 27 Nov 2023 16:56:24 +0000 Subject: [PATCH] fix device tree path for HassOS --- frigate/detectors/plugins/rknn.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frigate/detectors/plugins/rknn.py b/frigate/detectors/plugins/rknn.py index 38beec3b2..4d20c2a8f 100644 --- a/frigate/detectors/plugins/rknn.py +++ b/frigate/detectors/plugins/rknn.py @@ -42,6 +42,12 @@ class Rknn(DetectionApi): type_key = DETECTOR_KEY def __init__(self, config: RknnDetectorConfig): + + # create symlink for Home Assistant add on + if not os.path.isfile("/proc/device-tree/compatible"): + if os.path.isfile("/device-tree/compatible"): + os.symlink("/proc/device-tree/compatible", "/device-tree/compatible") + # find out SoC try: with open("/proc/device-tree/compatible") as file: