--- /sbin/lrm-manager 2007-06-02 22:53:28.000000000 +0200 +++ lrm-manager 2007-06-21 17:57:24.000000000 +0200 @@ -11,13 +11,15 @@ KVER="$(uname -r)" DEPMOD=yes +LIST=no while [ $# -gt 0 ]; do case "$1" in - --kver=*) KVER="${1#--kver=}"; shift ;; - --quick) DEPMOD=no; shift ;; - --help) echo "Usage: $0 [ --quick ] [ --kver=KERNEL_VERSION ]"; exit 0 ;; - *) shift ;; + --kver=*) KVER="${1#--kver=}"; shift ;; + --quick) DEPMOD=no; shift ;; + --list) LIST=yes; shift ;; + --help) echo "Usage: $0 [ --quick ] [ --kver=KERNEL_VERSION ] [ --list ]"; exit 0 ;; + *) shift ;; esac done @@ -61,6 +63,9 @@ *) if [ "$1" = "$module" ]; then CURRENT_MODULE_DISABLED="true" + if [ "$LIST" = "yes" ]; then + echo "$module" + fi break else shift