View previous topic :: View next topic |
Author |
Message |
OneOfOne Guru
Joined: 28 May 2003 Posts: 368
|
Posted: Sat Dec 20, 2003 7:14 am Post subject: updated installkernel script to handle nvidia-kernel |
|
|
well i always loved to have the latest kernels and after a while i got tired of having to remerge nvidia-kernel and always hated that it deletes the old modules, so i modified installkernel script to do a little trick, touch the old kernel's nvidia module so it wouldnt get removed and rerun emerge nvidia-kernel.
just appened this to the bottom of your /sbin/installkernel (part of debianutils).
Code: | echo -en "\nShould i re-emerge nvidia-kernel?(y/n) "
read input
if [ "$input" = "y" ] ; then
/bin/touch /lib/modules/`uname -r`/video/nvidia.o
/usr/bin/emerge nvidia-kernel
fi
|
i'm not good with bash scripting but this works for me and i hope its helpful for others
peace |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|