Skip to content

Commit

Permalink
Fix path of device tree on HassOS add on (blakeblackshear#8764)
Browse files Browse the repository at this point in the history
* fix device tree path for HassOS

* fix symlink call

* fix formatting
  • Loading branch information
MarcA711 authored Nov 28, 2023
1 parent fef6a7c commit 27cf1cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frigate/detectors/plugins/rknn.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ 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("/device-tree/compatible", "/proc/device-tree/compatible")

# find out SoC
try:
with open("/proc/device-tree/compatible") as file:
Expand Down

0 comments on commit 27cf1cd

Please sign in to comment.