All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Farina <sidhayn@gmail.com>
To: "Luis R. Rodriguez" <mcgrof@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] [compat-wireless] replace modprobe -l with functional equivilent
Date: Thu, 23 Feb 2012 23:58:23 -0500	[thread overview]
Message-ID: <4F4718EF.3010300@gmail.com> (raw)
In-Reply-To: <CAB=NE6VSR8_uhsoDkgh2SmjgDerSX2CXztt2cVxYTEQSgTaYwg@mail.gmail.com>

On 02/23/12 20:39, Luis R. Rodriguez wrote:
> On Sun, Feb 19, 2012 at 8:03 AM, Rick Farina <sidhayn@gmail.com> wrote:
>> modprobe -l is either deprecated or removed, so let's replace it
>>
>> Signed-off-by: Rick Farina <sidhayn@gmail.com>
> Did you test this when one of those modules is present?
ozzie compat-wireless # $(modinfo compat > /dev/null 2>&1) && echo yes
yes
ozzie compat-wireless #


The logic is sound, I use the same test in another script and it works
great.  It's a bit unusual I realize, but it works and it's all I could
think of.  It tests the exit value of modinfo which is true when the
module exists and false when it doesn't.  Simple as I could manage.

-Rick

>
>   Luis
>


      reply	other threads:[~2012-02-24  4:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-19 16:03 [PATCH] [compat-wireless] replace modprobe -l with functional equivilent Rick Farina
2012-02-24  1:39 ` Luis R. Rodriguez
2012-02-24  4:58   ` Richard Farina [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F4718EF.3010300@gmail.com \
    --to=sidhayn@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.