Thanks for the feedback! > This is used twice now in two scripts as such perhaps best to stuff > this as a helper in a new file of script helpers, > scripts/mod_helpers.sh and then both this file and > scripts/compress_modules.sh would just: > > source ./mod_helpers.sh Will do. >> +if test "$(mod_filename mac80211)" = "mac80211.ko.gz" ; then >> + compr=".ko" > > I think what was meant is compr=".gz" Right. >> +for driver in $(find -type f -name *.ko); do > > and here perhaps you forgot to apply the extension, and perhaps best > to just peg the path in the find from the start, otherwise we end up > removing other kernel's updates as well: I may be missing something. IMO the correct list of modules to uninstall is the compiled *.ko in the unpacked tarball, and these are never compressed. The delete location is $KLIB/updates where make install copied them to. If applied compression was on $KLIB/updates as well. Felix -- To unsubscribe from this list: send the line "unsubscribe backports" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html