Package Details: modprobed-db 2.46-1

Git Clone URL: https://aur.archlinux.org/modprobed-db.git (read-only, click to copy)
Package Base: modprobed-db
Description: Keeps track of EVERY kernel module ever used - useful for make localmodconfig
Upstream URL: https://wiki.archlinux.org/index.php/Modprobed-db
Licenses: MIT
Conflicts: modprobed_db
Replaces: modprobed_db
Submitter: graysky
Maintainer: graysky
Last Packager: graysky
Votes: 256
Popularity: 0.40
First Submitted: 2013-11-15 22:21 (UTC)
Last Updated: 2022-05-05 18:47 (UTC)

Latest Comments

« First ‹ Previous 1 .. 9 10 11 12 13 14 15 Next › Last »

SanskritFritz commented on 2011-01-17 15:48 (UTC)

Just read the contents of the very script, the comments are enough.

SanskritFritz commented on 2011-01-17 15:05 (UTC)

The "database" is a simple textfile, editing it and deleting words is perfectly safe. What do you mean, by modprobed trying to fetch a module? That is not the function of this package. You have to manually modprobe the modules prior to a kernel compile.

<deleted-account> commented on 2011-01-17 14:58 (UTC)

How do I remove led_class and wl modules from the db? I stopped using them and I can't compile a kernel because modprobed tries to fetch them

<deleted-account> commented on 2011-01-11 00:00 (UTC)

@graysky - Been trying to learn gawk and found another way if your interested? Works similar to yours except it uses gawk's regular expression comparison ability to search fields instead of using grep. Turn the ignore array into something we can use: var=$(echo ${ignore[*]} | sed 's/\(\<[[:alnum:]]*\>\)/^\1/g; s/ */|/g') echo $var: (above output) ^nvidia|^nouveau|^vboxdrv|^vboxnetflt|^vboxnetadp db: gawk '$1 !~ /'"$var"'/ { print $1 }' /proc/modules | sort > ${db}

graysky commented on 2010-11-04 21:04 (UTC)

@harryNID - thanks for the tips. comm is a new one for me.

<deleted-account> commented on 2010-11-04 20:56 (UTC)

@graysky - I'm bugging again probably (last time!!) but here is another way to achieve your goal of $db and $dblong without using sed at all. Again this is solely for your amusement nothing more. $db: comm -23 <(cut -d\ -f1 /proc/modules | sort) <(echo ${ignore[*]} | tr " " "\n" | sort) $dblong: echo $(comm -23 <(cut -d\ -f1 /proc/modules | sort) <(echo ${ignore[*]} | tr " " "\n" | sort))

<deleted-account> commented on 2010-11-02 22:02 (UTC)

@graysky - First great little script! Here is another way to write your sed statement parsing the ignore array. It's slightly smaller and easier to read if your interested. cat /proc/modules | cut -d\ -f1 | sort -k1,1 | grep -Ev "$(echo ${ignore[*]} | sed -e "s/^.*/^(&)\$/" -e "s/ /|/g")" Should be very slightly more efficient by using "cut" instead of "awk" and one less editing statement in the sed command (you might save a billionth of a second perhaps). Strictly speaking the "-k1,1" is really not needed since your just sorting one field but it doesn't hurt. Hope you don't mind.

graysky commented on 2010-10-25 19:42 (UTC)

@SF - got it this time. Thanks again. Plus, the script is now more robust thanks to some fancy sed usage.

SanskritFritz commented on 2010-10-25 15:01 (UTC)

still */5 * * * * /usr/bin/modprobed_db.sh > /dev/null 2>&1 in readme.install ;-)

graysky commented on 2010-10-25 06:55 (UTC)

Added an ignore feature. Now modules defined in the ignore array in /etc/modprobed_db.conf are removed from the db. For example, modules that are not a part of the linux kernel such as those installed by other packages like nvidia, virtualbox modules, etc.