1 |
On 01/06/2003 at 20:27:54(+0100), Peter Ruskin used 2.1Kbytes just to say: |
2 |
> #!/bin/sh |
3 |
> # /usr/local/bin/build-kernel-2 |
4 |
> # Run this after booting into a new kernel |
5 |
> AUTOCLEAN="no" ACCEPT_KEYWORDS="~x86" emerge lm_sensors nvidia-kernel |
6 |
|
7 |
As sometimes I am not sure what packages need reemerging, I use this script: |
8 |
|
9 |
for i in `grep -l ' /lib/modules/' /var/db/pkg/*/*/CONTENTS`; do |
10 |
ii=`dirname $i`; |
11 |
cat $ii/COUNTER; echo " $ii"; |
12 |
done | sort -n | cut -f5,6 -d/ | sed -e 's/^/>=/' |
13 |
|
14 |
which on my system currently produces: |
15 |
|
16 |
>=sys-libs/cdfs-0.5c |
17 |
>=media-sound/alsa-driver-0.9.3a |
18 |
>=x11-base/xfree-drm-4.3.0-r2 |
19 |
>=sys-apps/i2c-2.7.0 |
20 |
>=sys-apps/lm-sensors-2.7.0 |
21 |
>=media-video/mplayer-0.90-r1 |
22 |
>=sys-apps/lufs-0.9.5 |
23 |
|
24 |
This can be directly piped to "xargs emerge" or... whatever. I like to keep the |
25 |
original order of the packages, hence the sorting. |
26 |
|
27 |
-- |
28 |
/^^^^^^^^^^^^^^^^^^^^^^^^^^^\/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\ |
29 |
/ Georgi Georgiev (-< / Send your questions to ``ASK \ |
30 |
\ chutz@×××××××.net /\ .o)\ ZIPPY'', Box 40474, San / |
31 |
/ +81(90)6266-1163 V_/_ |(/)/ Francisco, CA 94140, USA \ |
32 |
\___________________________/\__________________________________/ |
33 |
|
34 |
-- |
35 |
gentoo-dev@g.o mailing list |