All pastes #1336614 Raw Edit

Unnamed

public text v1 · immutable
#1336614 ·published 2009-02-14 01:34 UTC
rendered paste body
#!/bin/bash

# Edit the following vars (do not use spaces)
# Setup lilo to boot from the correct image - e.g. vmlinuz-2.6.27.7-custom
# depending on your settings for VERSION and LOCALNAME
# This script needs to be either run as root or you need to add 'sudo'
# to some of the commands.

VERSION="2.6.27.7"
LOCALNAME="custom"

check=$(grep "vmlinuz-$VERSION-$LOCALNAME" /etc/lilo.conf)
if [[ $check == "" ]]
then
        {
                echo "Can't find vmlinuz-$VERSION-$LOCALNAME in /etc/lilo.conf"
                echo "Did you forget to put it in?"
                exit 1
        }
fi

cd /usr/src/linux
make menuconfig
make
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-$VERSION-$LOCALNAME
cp System.map /boot/System.map-$VERSION-$LOCALNAME
cp .config /boot/config-$VERSION-$LOCALNAME
/sbin/lilo