Add some roles for autodetection of Hardware

This commit is contained in:
Alexander Grothe
2017-03-02 16:01:52 +01:00
parent 5cd3869a51
commit bcc016b7e6
12 changed files with 192 additions and 11 deletions

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env python2
# This script returns a list of currently loaded kernel modules
from __future__ import print_function
import json
import kmodpy
k = kmodpy.Kmod()
print(json.dumps([module[0] for module in k.loaded()]))