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:
parent
46219ace04
commit
f60e341d6e
@ -1183,7 +1183,7 @@ fi
|
|||||||
"""
|
"""
|
||||||
Returns the value of the given sysctl parameter as a string.
|
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:
|
try:
|
||||||
return await self.read_value.asyn(path)
|
return await self.read_value.asyn(path)
|
||||||
except FileNotFoundError as e:
|
except FileNotFoundError as e:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user