diff options
Diffstat (limited to 'snippets/sh/modules-info.sh')
-rwxr-xr-x | snippets/sh/modules-info.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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' |