linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Artem Chekunov <scorp.dev.null@gmail.com>
To: linux-wireless@vger.kernel.org
Subject: Re: Building and Installation errors due to modprobe -l was deprecated
Date: Wed, 4 Jul 2012 10:03:34 +0000 (UTC)	[thread overview]
Message-ID: <loom.20120704T120059-164@post.gmane.org> (raw)
In-Reply-To: 4F58D80D.8070905@gmail.com

Aaron <regtothismail@...> writes:

> 
> Hello,
> 
> I have problems with building and installing compat-wireless-3.3-rc1-2 
> drivers due to modprobe -l option is obsolete.
> Debian wheezy/sid
> Linux laptop 3.2.0-2-amd64 #1 SMP Sun Mar 4 22:48:17 UTC 2012 x86_64 
> GNU/Linux
> 
> # make install
> /sbin/modprobe: invalid option -- 'l'
> /sbin/modprobe: invalid option -- 'l'
> 
> Your old wireless subsystem modules were left intact:
> 
> /sbin/modprobe: invalid option -- 'l'
> make: *** [uninstall] Error 1
> 
> Best regards,
> Aaron
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@...
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 

Try run next
####################################################
cat > /sbin/modprobe.sh <<EOF
#!/bin/bash

if [[ \$1 == -l ]]
then

if [ -z \$2 ]    
then
find /lib/modules/\$(uname -r) -name '*.ko' | sed -e "s#\/lib\/modules\/\$(uname
-r)\/##g"
else
find /lib/modules/\$(uname -r) -name '*.ko' | sed -e "s#\/lib\/modules\/\$(uname
-r)\/##g" | grep \$2
fi

else
/sbin/modprobe \$@
fi
EOF

chmod +x /sbin/modprobe.sh
alias modprobe=/sbin/modprobe.sh
echo "alias modprobe=/sbin/modprobe.sh" >> /etc/bash.bashrc

cp Makefile Makefile.save
sed -i -e 's/^MODPROBE.*/MODPROBE := \/sbin\/modprobe.sh/g' Makefile



  parent reply	other threads:[~2012-07-04 10:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-08 16:02 Building and Installation errors due to modprobe -l was deprecated Aaron
2012-04-23 23:45 ` Sami
2012-07-04 10:03 ` Artem Chekunov [this message]
2012-07-04 10:42 ` Artem Chekunov

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=loom.20120704T120059-164@post.gmane.org \
    --to=scorp.dev.null@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).