3 # kernell install script
8 #ROOT=`cat /etc/fstab | sed -ne 's@^[ \t]*\([^ \t][^ \t]*\)[ \t][ \t]*/[ \t].*@\1@p'`
18 #KERNEL=`make kernelversion`
19 KERVER
=`make kernelrelease`
25 echo -n Build
'&' install kernel
"$KERVER" ' ?'
36 su portage
-c make all
38 echo make modules_install...
39 make modules_install ||
exit 10
41 cp -v .
/arch
/x86
/boot
/bzImage
"/boot/kernel-$KERVER" ||
exit 1
42 cp -v .
/System.map
"/boot/System.map-$KERVER" ||
exit 2
43 cp -v .
/.config
"/boot/Config-$KERVER" ||
exit 3
46 echo "" >> /boot
/grub
/grub.conf
47 echo "title=Linux $KERVER" >> /boot
/grub
/grub.conf
48 echo "kernel" "/boot/kernel-$KERVER" "root=$ROOT" "ro" >> /boot
/grub
/grub.conf
51 echo grub.conf was updated
, but manual check is recomended.