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



--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Question about how "aptitude search" is used
    ... anyone else be adversely impacted despite not using it in a script? ... $ aptitude search foo ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: Bash script question
    ... trouble putting this into a script. ... A little Perl or Python script would work. ... Is "common sense" really valid? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • RE: forwarding logs
    ... Same with another script. ... >> You should not need to cange anything in the log script itself. ... >> Reuben D. Budiardja ...
    (RedHat)
  • RE: forwarding logs
    ... Same with another script. ... >> You should not need to cange anything in the log script itself. ... >> Reuben D. Budiardja ...
    (RedHat)
  • Re: diff files matching a pattern
    ... Thanks for the script, Richard. ... My trouble is I can ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)