Skip to contentSkip to conversation

Building and Installation errors due to modprobe -l was deprecated

DISCUSSION Aaron 3 participants 4 messages Mar 8, 2012 – Jul 4, 2012

lore
Share & tools
lore

Aaron

author
#0 lore raw

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

#1 lore raw

Hi Aaron,

I have the same problem with building module for bluetooth dongle Asus BT211. Have you found a fix for this issue? Thank you.

#2 lore raw
In reply to Aaron
Quoted 18 lines · Aaron

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

Quoted 8 lines

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

#3 lore raw
In reply to Aaron

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