Results 1 to 2 of 2

Thread: Found a bug in my mainline kernel update script

  1. #1
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    4,376
    Distro
    Xubuntu 13.04 Raring Ringtail

    Found a bug in my mainline kernel update script

    Edit:
    https://github.com/GM-Script-Writer-...Updater#readme
    newer version with more features aka options

    -----------ORIGINAL POST BELOW-----------

    I have posted this script in several of the kernel testing threads since the previous dev cycle of qunatal, I found a bug recently here is the fix, I am posting this here to make sure everyone using it gets the update.

    there is a mistake on line 29 of /usr/local/bin/KernelUpdateScriptGenerator
    before:
    $name2=substr($name,0,strpos($name,'-q'));
    after:
    $name2=substr($name,0,strpos($name,"-$r"));
    I underlined the change on the line

    This should patch the file for you:
    Code:
    sudo sed "s/'-q'/\"-\$r\"/" -i /usr/local/bin/KernelUpdateScriptGenerator
    i think i put the '-q' in there while testing qunatal so the q was for quantal and i guess i forgot to make it dynamic
    i have attached a copy of the installer with the fix for those who are wondering what this is
    Attached Files Attached Files
    Last edited by pqwoerituytrueiwoq; April 29th, 2013 at 02:31 AM.
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  2. #2
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    4,376
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: Found a bug in my mainline kernel update script

    I have recently added lot of features for advanced usage feature, I know most of us here have use for at least some of them, you could add a cronjob to install new kernels automatically
    It also has nice and fancy info output when you go to install a kernel

    better handling of only 3 debs for new kernels while still supporting the old kernels that need 4 debs, without asking for any confirmation (eg assume one is missing if there are 3)
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

Bookmarks

Posting Permissions

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