From f60e341d6e57ff01d62c325d4c7ef59567f535d2 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Tue, 16 Jan 2024 15:43:39 +0000 Subject: [PATCH] target: Fix read_sysctl() Add a leading "/" so the path is absolute. --- devlib/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/target.py b/devlib/target.py index d466239..5662186 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -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: