From 731292998399eb0dfc556cf3bcdcd4b0cb7c15f4 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 6 Dec 2016 16:08:53 -0800 Subject: [snippets] store some snippets / scripts here too. --- snippets/sh/modules-info.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 snippets/sh/modules-info.sh (limited to 'snippets/sh/modules-info.sh') diff --git a/snippets/sh/modules-info.sh b/snippets/sh/modules-info.sh new file mode 100755 index 0000000..a0d1733 --- /dev/null +++ b/snippets/sh/modules-info.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +modinfo $(cut -d' ' -f1 /proc/modules) | sed '/^dep/s/$/\n/; /^file\|^desc\|^dep/!d' -- cgit 1.4.1