Skip to content

Commit 811021a

Browse files
committed
Added kernel modules to listing
1 parent 4be3ae6 commit 811021a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/hardware_info.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
[rpwr, 'Linux Version', '/usr/bin/hostnamectl', r'Kernel:\s*(?P<o>.*)'],
2828
[rpwr, 'Operating System', '/usr/bin/hostnamectl', r'Operating System:\s*(?P<o>.*)'],
2929
[rpwr, 'Architecture', '/usr/bin/hostnamectl', r'Architecture:\s*(?P<o>.*)'],
30+
[rpwr, 'Kernel Modules', 'lsmod', r'(?P<o>.*)', re.IGNORECASE | re.DOTALL],
3031
[cf, 'CPU Utilization', psutil.cpu_percent, [0.1]],
3132
[cf, 'Free Memory', psutil.virtual_memory, [], 'available'],
3233
[cf, 'Disk Usage', psutil.disk_usage, ['/'], 'free'],
@@ -74,6 +75,7 @@
7475
[rpwr, 'Mac Version', 'sw_vers -productVersion', r'(?P<o>.*)'],
7576
[rpwr, 'Build Version', 'sw_vers -buildVersion', r'(?P<o>.*)'],
7677
[rpwr, 'Uname', 'uname -a', r'(?P<o>.*)'],
78+
[rpwr, 'Kernel Modules', 'kextstat', r'(?P<o>.*)', re.IGNORECASE | re.DOTALL],
7779
[cf, 'CPU Utilization', psutil.cpu_percent, [0.1]],
7880
[cf, 'Free Memory', psutil.virtual_memory, [], 'available'],
7981
[cf, 'Disk Usage', psutil.disk_usage, ['/'], 'free'],

0 commit comments

Comments
 (0)