On Monday 03 Nov 2003 21:32, A. Craig West wrote: > Some time ago, somebody posted a script to re-emerge any ebuilds for > kernel modules after recompiling the kernel. alsa-driver and > pcmcia-cs come to mind as likely candidate ebuilds. I have been > trying to find this script both in the list archives and on the > forums but have had no luck. Does this ring a bell with anybody?
Yes, this is the script that finds ebuilds that depend on kernel version: ################################################################# #!/bin/sh # /usr/local/bin/kernel-deps # list the ebuilds that depend on kernel version. # suggested by Georgi Georgiev <[EMAIL PROTECTED]> for i in `grep -l ' /lib/modules/' /var/db/pkg/*/*/CONTENTS`; do ii=`dirname $i`; cat $ii/COUNTER; echo " $ii"; done | sort -n | cut -f5,6 -d/ | sed -e 's/^/>=/' ################################################################# ...then you can use, for example: kernel-deps | env AUTOCLEAN="no" ACCEPT_KEYWORDS="~x86" xargs emerge Peter -- ====================================================================== Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.23_pre8-gss) i686 AMD Athlon(tm) XP 3200+ ====================================================================== -- [EMAIL PROTECTED] mailing list