On Wednesday 21 Nov 2001 03:37, Douglas J Hunley wrote: > Mike Andrew babbled on about: > > obviously, uname -r is wrong, because that aint THE compiling kernel. > > There's some fudgery done during make modules_install where it > > 'knows' the current compiling version but I can't find the script and > > magic words as such to use. > > it's $VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION from > /usr/src/linux/Makefile ;)
I use this: #!/bin/sh #------------------------------------------------------------------------------ # File : /usr/local/bin/buildkernel # Author : Peter Ruskin # Created On : Monday 17 Sep 2001 #------------------------------------------------------------------------------ kernel=$(echo `pwd`|cut -dx -f2) make clean make distclean make mrproper make xconfig echo echo make dep clean... echo make dep clean || exit echo echo make bzImage... echo make bzImage || exit echo echo make modules... echo make modules || exit echo echo make modules_install... echo make modules_install || exit rm -f /boot/initrd$kernel.img /sbin/mkinitrd /boot/initrd$kernel.img $(echo $kernel|cut -d- -f2,3,4,5) \ || exit 1 cp -f arch/i386/boot/bzImage /boot/vmlinuz$kernel cp -f .config /boot/config$kernel cp -f System.map /boot/System.map$kernel echo echo "Now you can edit /etc/lilo.conf then run /sbin/lilo." -- Peter Ruskin, Wrexham, Wales. Registered Linux User No. 219434 ( see http://counter.li.org/ ). Mandrake Linux release 8.1 (Vitamin) for i586 Kernel 2.4.8-26mdk-pnr-win4lin, XFree86 4.1.0, patch level 17mdk. KDE: 2.2.1. Qt: 2.3.1. Uptime 1 hour 24 minutes. ------------------------------------------------------------------ _______________________________________________ Linux-users mailing list Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users