#echo "must to root to execute this script"
cp /etc/sysconfig/kernel /etc/sysconfig/kernel.ori
cp /etc/sysconfig/bootloader /etc/sysconfig/bootloader.ori
mv /etc/sysconfig/kernel.new /etc/sysconfig/kernel
mv /etc/sysconfig/bootloader.new /etc/sysconfig/bootloader
/sbin/mkinitrd
/sbin/lilo
# remove temporary files
rm -rf /lib/linux
echo "Kernel and System Loader Updated. Remove file 'finish_setup' if you want"
echo "REMOVE CD and FLOPPY. Reboot."
