«
»

Get my kernel headers script

December 15th, 2005 by George Notaras

This BASH script automates the procedure of getting the Fedora kernel headers, that was discussed in my previous post about preparing the complete kernel headers. It’s at a very early stage, does not include many checks, but does the job well, if configured properly. The configuration options are inside the script and they are mainly the directory paths of your building tree.

Note: The script does not allow you to execute it as root. Comment the relevant line if you do not like this behaviour.

Installation: put it in ~/bin/ directory and enable the executable attribute.
Usage: Simply type its filename in a shell.

Version: 0.4beta
Requires: wget, rpm, rpmbuild, sed

Download the script from the link below:
get_my_kernel_headers.tar.gz

The Get my kernel headers script by George Notaras, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Terms and conditions beyond the scope of this license may be available at www.g-loaded.eu.

Related Articles

Tags: , ,

Bookmark and Share

2 Responses to “Get my kernel headers script”

  1. Henrik Says :

    Hmm the script doesn’t work if running on a SMP kernel :-(

  2. Gnot Says :

    Henrik, probably it is needed to change the filename of the configuration that should be copied and possibly some of the directory paths. What this script does is described in this page: http://www.g-loaded.eu/2005/12/14/the-complete-fedora-kernel-headers/

    Unfortunately, I do not have the time to investigate this. If you modify the script to work with the smp kernel, drop me a line, so I can add it here or add a link to a page of yours where the modified script is hosted.

Comments are automatically disabled after a certain period of time. Further discussion about the published content is still possible though in the G-Loaded Forums.