mirror of
https://github.com/ARM-software/devlib.git
synced 2025-09-04 02:51:53 +01:00
target: Fix read_sysctl()
Add a leading "/" so the path is absolute.
This commit is contained in:
committed by
Marc Bonnici
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:
|
||||||
|
Reference in New Issue
Block a user