1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

target: Fix read_sysctl()

Add a leading "/" so the path is absolute.
This commit is contained in:
Douglas Raillard 2024-01-16 15:43:39 +00:00 committed by Marc Bonnici
parent 46219ace04
commit f60e341d6e

View File

@ -1183,7 +1183,7 @@ fi
"""
Returns the value of the given sysctl parameter as a string.
"""
path = self.path.join('proc', 'sys', *parameter.split('.'))
path = self.path.join('/', 'proc', 'sys', *parameter.split('.'))
try:
return await self.read_value.asyn(path)
except FileNotFoundError as e: