Kernel sources script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings 

Guys could some one with more experience than me please check this script.
this is the first part of it anyway; this part is supposed to install the new 
kernel and kernel src rpm, build the kernel sources as per the realease 
notes, don't worry about the arch here as this is for a batch of matching 
machines. I would like to work out how to do it for specific kernels but will 
get to that later. please just check that this is what needs doing for the 
kernel source tree to be built


#!/bin/sh"
echo "Starting the update process"

#set the current directory variable
updatedir=$(pwd)

#install new kernel
rpm -Uvh $updatedir/kernel-2.6.9-1.681_FC3.i686.rpm

#Install kernel source
rpm -Uvh $updatedir/kernel-2.6.9-1.681_FC3.src.rpm

#build the source tree
cd /usr/src/redhat/SPECS/
rpmbuild -v -v -bp --target=`uname -m` kernel-2.6.spec
cp 
-f /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/configs/kernel-2.6.9-i686.config /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/.config
cd $updatedir

echo "Your New Kernel and its Source are installed ;)"
#Done

TIA


-- 
Chadley Wilson
Redhat Certified Technician 
Cert Number: 603004708291270
Pinnacle Micro
Manufacturers of Proline Computers
====================================
Exercise freedom, Use LINUX
=====================================


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux