3 # kernell install script
11 chown portage .
-R ||
exit 4
14 make prepare ||
exit 5
17 KERVER
=`make kernelrelease`
21 echo -n Build
'&' install kernel
"$KERVER" ' ?'
28 su portage
-c make all ||
exit 7
30 echo make modules_install...
31 make modules_install ||
exit 10
33 cp -v .
/arch
/x86
/boot
/bzImage
"/boot/kernel-$KERVER" ||
exit 1
34 cp -v .
/System.map
"/boot/System.map-$KERVER" ||
exit 2
35 cp -v .
/.config
"/boot/Config-$KERVER" ||
exit 3
38 echo "" >> /boot
/grub
/grub.conf
39 echo "# #" >> /boot
/grub
/grub.conf
40 echo "title=Linux $KERVER" >> /boot
/grub
/grub.conf
41 echo "kernel" "/boot/kernel-$KERVER" "root=$ROOT" "ro" >> /boot
/grub
/grub.conf
44 echo grub.conf was updated
, but manual check is recomended.