diff --git a/devlib/target.py b/devlib/target.py index 8a577b1..bd7cd5e 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -135,6 +135,10 @@ class Target(object): def kernel_version(self): return KernelVersion(self.execute('{} uname -r -v'.format(quote(self.busybox))).strip()) + @property + def hostid(self): + return int(self.execute('{} hostid'.format(self.busybox)).strip(), 16) + @property def os_version(self): # pylint: disable=no-self-use return {}