lkml.org 
[lkml]   [2019]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 1/2] Enlist running kernel modules information
On Tue, Dec 3, 2019 at 6:49 PM Bhaskar Chowdhury <unixbhaskar@gmail.com> wrote:
>
> This is new file to show running kernel modules list.One line bash
> script.
>
> Signed-off-by: Bhaskar Chowdhury <unixbhaskar@gmail.com>
> ---
> scripts/kernel_modules_info.sh | 23 +++++++++++++++++++++++
> 1 file changed, 23 insertions(+)
> create mode 100755 scripts/kernel_modules_info.sh
>
> diff --git a/scripts/kernel_modules_info.sh b/scripts/kernel_modules_info.sh
> new file mode 100755
> index 000000000000..f005c47a3aa6
> --- /dev/null
> +++ b/scripts/kernel_modules_info.sh
> @@ -0,0 +1,23 @@
> +#!/bin/bash -
> +#SPDX-License-Identifier: GPL-2.0
> +#===============================================================================
> +#
> +# FILE: kernel_modules_info.sh
> +#
> +# USAGE: ./kernel_modules_info.sh
> +#
> +# DESCRIPTION: Running kernel modules information.
> +#
> +# OPTIONS: ---
> +# REQUIREMENTS: awk
> +# BUGS: ---
> +# NOTES: ---
> +# AUTHOR: Bhaskar Chowdhury (https://about.me/unixbhaskar), unixbhaskar@gmail.com
> +# ORGANIZATION: Independent
> +# CREATED: 12/03/2019 13:52
> +# REVISION: ---
> +#===============================================================================
> +
> +set -o nounset # Treat unset variables as an error
> +
> +awk '{print $1}' "/proc/modules" | xargs modinfo | awk '/^(filename|desc|depends)/'



I want to see a good reason (e.g. useful for other developers) for upstreaming.
This script looks like your custom script, which you can maintain locally.



--
Best Regards
Masahiro Yamada

\
 
 \ /
  Last update: 2019-12-04 04:11    [W:0.048 / U:0.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site