lkml.org 
[lkml]   [2004]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.6.2: "-" or "_", thats the question
Ryan Reich wrote:
> On Mon, 16 Feb 2004, Ryan Reich wrote:
>
>
>
> Sorry, I didn't realize that your problem was also the inconsistency in module
> names. Someone else suggested using a shell expansion; you could try
>
> cat /proc/modules | tr _ - | grep -q "^${module_name/_/-}"
>
> which is both short and works.
>

tr is usually in /usr/bin, which might not be available
at boot time. And probably you mean 'grep -q "^${module_name//_/-}"'


Did I mention that the inconsistency requires ugly and error-
prone workarounds? QED


Regards

Harri
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.095 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site