Saturday, November 19, 2011


Making modconf work with Linux 3



If you want a nice curses based GUI to add and remove modules from Linux on the fly, you probably used modconf. They say it's deprecated, but they still haven't made anything to replace it.

I noticed that it stopped working on Linux 3.

The problem is as follows, the configuration scripts that come with modconf generally look to see if you're using Linux 2.0 - 2.4 and do one thing, and do another for 2.5 and up. They generally check just the second digit, so now with Linux "3.0" it thinks you're using 2.0 and does something for <2.5 when it should be using the >=2.5 method.

Edit /usr/share/modconf/params
Look for:

case "$(uname -r | cut -f2 -d.)" in
0|1|2|3|4)
CFGFILE=$Target/etc/modules.conf
MODUTILSDIR=$Target/etc/modutils
;;
*)
CFGFILE=$Target/etc/modprobe.d
MODUTILSDIR=$Target/etc/modprobe.d
;;
esac

Replace it with:
CFGFILE=$Target/etc/modprobe.d
MODUTILSDIR=$Target/etc/modprobe.d

Edit /usr/share/modconf/util
Look for:

  case "$(uname -r | cut -f2 -d.)" in
0|1|2|3|4)
modsuffix=".o"
using_mit=1
;;
*) modsuffix=".ko" ;;
esac

Replace it with:
modsuffix=".ko"

And that's all there is to it!

4 comments:

augustwalker said...

hp laserjet m1132 mfp error e3 is one of the acclaimed models utilized by a wide ... this mistake code emerges because of issue with canner carriage in the Printer.

Zoo Video Player said...

This post is very good I am very happy to see this post. Thanks for sharing such a great article. Keep up the work... your site is great, and it's helping us a lot.
Video Player App
WhatsApp Status Saver

Easy Loan Mart said...

Hi.....
If you are writing a driver that must work on a particular distribution, you will certainly want to build and test against the relevant kernels.
You are also read more Get a Personal Loan Online with low interest rate

John Fei said...

Imagine having an ai that can write essays for you. This futuristic technology is now a reality, thanks to the advancements in artificial intelligence. An ai that can write essays utilizes deep learning algorithms and natural language processing to generate high-quality, original content. With this revolutionary tool at your disposal, the writing process becomes more efficient and productive. It's a game-changer for students and professionals seeking assistance with their writing tasks.