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