Results 1 to 5 of 5

Thread: Fixed prepare-kernel-sources script

Threaded View

  1. #1
    Join Date
    Jan 2006

    Default Fixed prepare-kernel-sources script

    This is a touched up version of the prepare-kernel-sources script included in BT5. The version included in the R0 release doesn't use the proper kernel version and is effectively broken; most users end up doing it manually. Here is my humble contribution to a fix:

    # Modified by Hobz/Hobbes 16/08/11
    function get-version {
    for f in /usr/src/linux-source-"$(uname -r)"*.tar.bz2
    do if [[ -f $f ]]
    echo "[*] apt-getting linux-source..."
    apt-get install linux-source
    cd /usr/src/
    echo "[*] extracting sources (version "$VER"), please wait"
    tar jxpf linux-source-$VER.tar.bz2
    echo "[*] doing stuff..."
    rm -rf linux
    ln -s linux-source-$VER linux
    cd linux
    zcat /proc/config.gz > .config
    echo "[*] making stuff..."
    make scripts
    make prepare
    ln -s /usr/src/linux /lib/modules/$VER/build
    echo "[*] tada!"
    #  Uncomment next two lines to automatically complete the process
    #cd /usr/src/linux
    #cp -rf include/generated/* include/linux/
    Last edited by hobbes; 08-27-2011 at 11:53 PM. Reason: R1 pre-release to R0 for clarity

Similar Threads

  1. prepare-kernel-sources
    By SWFu64 in forum BackTrack 5 Bugs
    Replies: 8
    Last Post: 10-23-2011, 08:54 PM
  2. "prepare-kernel-sources" won't work
    By adrianpip2000 in forum BackTrack 5 General Topics
    Replies: 1
    Last Post: 07-17-2011, 05:04 AM
  3. typo in prepare-kernel-sources
    By aifooru in forum BackTrack 5 Bugs
    Replies: 0
    Last Post: 05-15-2011, 03:15 PM
  4. Replies: 0
    Last Post: 05-11-2011, 04:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts