I suggest create a command with option to install / update
Linux kernel from Linux itselft.
Kernin -i
would do :
"ask the root password"
cd /usr/src
cp linuxkernel.tar.gz (ask to the user).
tar -xvzpf linuxkernel.tar.gz
cd /usr/src/linux
make xconfig
make dep
make clean
make bzImage
make install
The -m option would do:
make modules
make modules_install
----------------------
Kernin -u
would browse for patches from the actual version to the latest
and would indicate to the user the time and weight of the patch files to do
it
Later :
cp patch.gz /usr/src
cd /usr/src; gunzip patch.gz
cd /usr/src/linux
make clean
make xconfig
make dep
make bzImage
Regards.
|