summaryrefslogtreecommitdiff
path: root/jobs
diff options
authorDaniel Manrique <roadmr@ubuntu.com>2015-04-29 09:44:43 -0400
committerDaniel Manrique <roadmr@ubuntu.com>2015-04-29 09:44:43 -0400
commite6dcd1568312f2a72d500357d6bc339f82d4e625 (patch)
tree8a6b32f10bf0969a14526efb253c1ef6e30a41fa /jobs
parent5558ec60eff2c66b68c768b8cf3787c86c04a003 (diff)
providers:checkbox: Add modinfo_attachment job.
This adds a list of modinfo information for each loaded module. A "name" attribute is added to each block to identify the module. Tools which expect to parse straight-from-modinfo output may choke on this attribute.
Diffstat (limited to 'jobs')
-rw-r--r--jobs/info.txt.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/jobs/info.txt.in b/jobs/info.txt.in
index d68aec9..aae62dd 100644
--- a/jobs/info.txt.in
+++ b/jobs/info.txt.in
@@ -85,6 +85,20 @@ command: find /etc/modprobe.* -name \*.conf | xargs cat
estimated_duration: 0.015
_description: Attaches the contents of the various modprobe conf files.
+id: modinfo_attachment
+plugin: attachment
+_summary: Attach modinfo information
+command:
+ for mod in $(lsmod | cut -f 1 -d " ")
+ do
+ printf "%-16s%s\n" "name:" "$mod"
+ modinfo $mod
+ echo
+ done
+estimated_duration: 1.5
+_description: Attaches modinfo information for all currently loaded modules
+
+
id: modules_attachment
plugin: attachment
command: cat /etc/modules