fix symlink call

This commit is contained in:
Marc Altmann 2023-11-27 18:09:43 +01:00 committed by GitHub
parent df87d799fe
commit 7a5b951a95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ class Rknn(DetectionApi):
# create symlink for Home Assistant add on # create symlink for Home Assistant add on
if not os.path.isfile("/proc/device-tree/compatible"): if not os.path.isfile("/proc/device-tree/compatible"):
if os.path.isfile("/device-tree/compatible"): if os.path.isfile("/device-tree/compatible"):
os.symlink("/proc/device-tree/compatible", "/device-tree/compatible") os.symlink("/device-tree/compatible", "/proc/device-tree/compatible")
# find out SoC # find out SoC
try: try: