[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get upgrade fails due to kernel-image problem



On Fri, 2005-12-16 at 15:25 +0100, gregory duchesnes wrote:
> Is there a quick way to get the list of modules and drivers i can erase?

Try this script:

#!/bin/bash
export module
for m in $(find /lib/modules -name '*.ko')
do
        module=$(basename $(basename $m) .ko)
        if [ -z "$((echo $module
                   lsmod | tail --lines=+2 |
                           awk '{print $1}') | sort | uniq -d)" ]
        then
                echo $m
        fi
done




Reply to: