mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 11:45:24 +03:00
fix device tree path for HassOS
This commit is contained in:
parent
5c4501efbc
commit
df87d799fe
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user