Last active
March 11, 2023 04:53
-
-
Save mmstick/8493727 to your computer and use it in GitHub Desktop.
Revisions
-
mmstick revised this gist
Sep 1, 2015 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,5 @@ #!/bin/bash cd /tmp if ! which lynx > /dev/null; then sudo apt-get install lynx -y; fi -
mmstick revised this gist
Oct 13, 2014 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,8 +13,8 @@ function download() { # Kernel URL read -p "Do you want the latest RC?" rc case "$rc" in y* | Y*) kernelURL=$(lynx -dump -nonumbers http://kernel.ubuntu.com/~kernel-ppa/mainline/ | tail -1) ;; n* | N*) kernelURL=$(lynx -dump -nonumbers http://kernel.ubuntu.com/~kernel-ppa/mainline/ | grep -v rc | tail -1) ;; *) exit ;; esac -
mmstick revised this gist
Sep 24, 2014 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,8 +13,8 @@ function download() { # Kernel URL read -p "Do you want the latest RC?" rc case "$rc" in y* | Y*) kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | tail -1 | cut -d ' ' -f 2) ;; n* | N*) kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | grep -v rc | tail -1 | cut -d ' ' -f 2) ;; *) exit ;; esac -
mmstick revised this gist
Sep 22, 2014 . 1 changed file with 2 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,11 +2,9 @@ cd /tmp sudo rm *.deb if ! which lynx > /dev/null; then sudo apt-get install lynx -y; fi if [ "$(getconf LONG_BIT)" == "64" ]; then arch=amd64; else arch=i386; fi function download() { wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | grep "$1" | grep "$2" | grep "$arch" | cut -d ' ' -f 4) -
mmstick revised this gist
Mar 12, 2014 . 1 changed file with 11 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,11 @@ #!/bin/bash cd /tmp sudo rm *.deb if [ "$(apt-cache policy lynx | grep Installed | awk -F ' ' '{print $2}')" == "(none)" ]; then sudo apt-get install lynx -y fi if [ "$(getconf LONG_BIT)" = "64" ]; then arch=amd64; else arch=i386; fi function download() { @@ -12,14 +15,16 @@ function download() { # Kernel URL read -p "Do you want the latest RC?" rc case "$rc" in y* | Y*) kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | tail -1 | cut -d ' ' -f 3) ;; n* | N*) kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | grep -v rc | tail -1 | cut -d ' ' -f 3) ;; *) exit ;; esac read -p "Do you want the lowlatency kernel?" lowlatency case "$lowlatency" in y* | Y*) lowlatency=1 ;; n* | n*) lowlatency=0 ;; *) exit ;; esac # Download Kernel -
mmstick revised this gist
Feb 28, 2014 . 1 changed file with 0 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,10 +22,6 @@ case "$lowlatency" in n*) lowlatency=0 ;; esac # Download Kernel if [ "$lowlatency" == "0" ]; then echo "Downloading the latest generic kernel." -
mmstick revised this gist
Feb 28, 2014 . 1 changed file with 1 addition and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,11 +3,7 @@ sudo apt-get install lynx -y cd /tmp sudo rm *.deb if [ "$(getconf LONG_BIT)" = "64" ]; then arch=amd64; else arch=i386; fi function download() { wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | grep "$1" | grep "$2" | grep "$arch" | cut -d ' ' -f 4) -
mmstick revised this gist
Feb 18, 2014 . 1 changed file with 6 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ sudo apt-get install lynx -y cd /tmp sudo rm *.deb if [ "$(getconf LONG_BIT)" = "64" ]; then arch=amd64 else arch=i386 @@ -26,16 +26,17 @@ case "$lowlatency" in n*) lowlatency=0 ;; esac latestKernel=$(echo $kernelURL | cut -d/ -f 6) echo "The latest kernel is $latestKernel. The currently installed kernel is $(uname -r)." sleep 3 # Download Kernel if [ "$lowlatency" == "0" ]; then echo "Downloading the latest generic kernel." download generic header download generic image elif [ "$lowlatency" == "1" ]; then echo "Downloading the latest lowlatency kernel." download lowlatency header download lowlatency image fi @@ -46,4 +47,4 @@ wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | grep all | cut -d ' ' -f # Install Kernel echo "Installing Linux Kernel" sudo dpkg -i linux*.deb echo "Done. You may now reboot." -
mmstick revised this gist
Feb 18, 2014 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -33,15 +33,16 @@ sleep 3 if [ "$lowlatency" == "0" ]; then echo "Downloading the latest 64-bit generic kernel." download generic header download generic image elif [ "$lowlatency" == "1" ]; then echo "Downloading the latest 64-bit lowlatency kernel." download lowlatency header download lowlatency image fi # Shared Kernel Header wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | grep all | cut -d ' ' -f 4) # Install Kernel echo "Installing Linux Kernel" sudo dpkg -i linux*.deb -
mmstick revised this gist
Feb 18, 2014 . 1 changed file with 0 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,4 @@ #!/bin/bash sudo apt-get install lynx -y cd /tmp sudo rm *.deb -
mmstick revised this gist
Feb 18, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -42,7 +42,7 @@ elif [ "$lowlatency" == "1" ]; then echo "Downloading the latest 64-bit lowlatency kernel." download lowlatency header download all header download lowlatency image fi # Install Kernel -
mmstick revised this gist
Feb 18, 2014 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,9 +7,9 @@ cd /tmp sudo rm *.deb if [ "$(getconf LONG_BIT)" == "64" ]; then arch=amd64 else arch=i386 fi function download() { -
mmstick revised this gist
Feb 18, 2014 . 1 changed file with 18 additions and 18 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,16 @@ sudo apt-get install lynx -y cd /tmp sudo rm *.deb if [ "$(getconf LONG_BIT)" == "64" ]; then $arch=amd64 else $arch=i386 fi function download() { wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | grep "$1" | grep "$2" | grep "$arch" | cut -d ' ' -f 4) } # Kernel URL read -p "Do you want the latest RC?" rc case "$rc" in @@ -23,26 +33,16 @@ echo "The latest kernel is $(echo $kernelURL | cut -d/ -f 6). The currently inst sleep 3 # Download Kernel if [ "$lowlatency" == "0" ]; then echo "Downloading the latest 64-bit generic kernel." download generic header download all header download generic image elif [ "$lowlatency" == "1" ]; then echo "Downloading the latest 64-bit lowlatency kernel." download lowlatency header download all header download lowlatency generic fi # Install Kernel -
mmstick revised this gist
Feb 4, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,6 +20,7 @@ case "$lowlatency" in esac echo "The latest kernel is $(echo $kernelURL | cut -d/ -f 6). The currently installed kernel is $(uname -r)." sleep 3 # Download Kernel if [ "$(getconf LONG_BIT)" == "64" ] && [ "$lowlatency" == "0" ]; then -
mmstick revised this gist
Feb 3, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ #!/bin/bash # Note: This script has been redesigned to support the new lowlatency+generic selection provided by Canonical. # Therefore, this script only works with kernel 3.14+, unless Canonical decides to provide lowlatency kernels for 3.13. # Dependency sudo apt-get install lynx -y cd /tmp -
mmstick revised this gist
Feb 3, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ #!/bin/bash # Note: This script has been redesigned to support the new lowlatency+generic selection provided by Canonical. # Therefore, this script only works with kernel 3.14+. # Dependency sudo apt-get install lynx -y cd /tmp -
mmstick revised this gist
Feb 3, 2014 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,22 +20,22 @@ esac echo "The latest kernel is $(echo $kernelURL | cut -d/ -f 6). The currently installed kernel is $(uname -r)." # Download Kernel if [ "$(getconf LONG_BIT)" == "64" ] && [ "$lowlatency" == "0" ]; then echo "Downloading the latest 64-bit generic kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '16p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '20p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '21p' | cut -d ' ' -f 4) elif [ "$(getconf LONG_BIT)" == "64" ] && [ "$lowlatency" == "1" ]; then echo "Downloading the latest 64-bit lowlatency kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '18p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '20p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '23p' | cut -d ' ' -f 4) elif [ "$(getconf LONG_BIT)" == "32" ] && [ "$lowlatency" == "0" ]; then echo "Downloading the latest 32-bit generic kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '17p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '20p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '22p' | cut -d ' ' -f 4) elif [ "$(getconf LONG_BIT)" == "32" ] && [ "$lowlatency" == "1" ]; then echo "Downloading the latest 32-bit lowlatency kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '19p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '20p' | cut -d ' ' -f 4) -
mmstick revised this gist
Feb 3, 2014 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,12 +31,12 @@ elif [ "$(uname -m)" == "x86_64" ] && [ "$lowlatency" == "1" ]; then wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '20p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '23p' | cut -d ' ' -f 4) elif [ "$(uname -m)" == "i386" ] && [ "$lowlatency" == "0" ]; then echo "Downloading the latest 32-bit generic kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '17p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '20p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '22p' | cut -d ' ' -f 4) elif [ "$(uname -m)" == "i386" ] && [ "$lowlatency" == "1" ]; then echo "Downloading the latest 32-bit lowlatency kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '19p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '20p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '24p' | cut -d ' ' -f 4) -
mmstick revised this gist
Feb 3, 2014 . 1 changed file with 10 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,19 +5,17 @@ cd /tmp sudo rm *.deb # Kernel URL read -p "Do you want the latest RC?" rc case "$rc" in y*) kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | tail -1 | cut -d ' ' -f 3) ;; n*) kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | grep -v rc | tail -1 | cut -d ' ' -f 3) ;; esac read -p "Do you want the lowlatency kernel?" lowlatency case "$lowlatency" in y*) lowlatency=1 ;; n*) lowlatency=0 ;; esac echo "The latest kernel is $(echo $kernelURL | cut -d/ -f 6). The currently installed kernel is $(uname -r)." -
mmstick revised this gist
Feb 3, 2014 . 1 changed file with 23 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,26 +5,43 @@ cd /tmp sudo rm *.deb # Kernel URL read -p "Do you want the latest RC?" -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]]; then kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | tail -1 | cut -d ' ' -f 3) else kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | grep -v rc | tail -1 | cut -d ' ' -f 3) fi read -p "Do you want the lowlatency kernel?" -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]]; then lowlatency=1 else lowlatency=0 fi echo "The latest kernel is $(echo $kernelURL | cut -d/ -f 6). The currently installed kernel is $(uname -r)." # Download Kernel if [ "$(uname -m)" == "x86_64" ] && [ "$lowlatency" == "0" ]; then echo "Downloading the latest 64-bit generic kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '16p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '20p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '21p' | cut -d ' ' -f 4) elif [ "$(uname -m)" == "x86_64" ] && [ "$lowlatency" == "1" ]; then echo "Downloading the latest 64-bit lowlatency kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '18p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '20p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '23p' | cut -d ' ' -f 4) elif [ "$(uname -m)" == "i386" ] && [ "$lowlatency" == "0" ]; then echo "Downloading the latest 32-bit kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '17p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '20p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '22p' | cut -d ' ' -f 4) elif [ "$(uname -m)" == "i386" ] && [ "$lowlatency" == "1" ]; then echo "Downloading the latest 32-bit kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '19p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '20p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '24p' | cut -d ' ' -f 4) fi # Install Kernel -
mmstick revised this gist
Feb 3, 2014 . 1 changed file with 8 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,24 +7,24 @@ sudo rm *.deb # Kernel URL read -p "Do you want the latest RC? " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]]; then kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | tail -1 | cut -d ' ' -f 3) else kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | grep -v rc | tail -1 | cut -d ' ' -f 3) fi echo "The latest kernel is $(echo $kernelURL | cut -d/ -f 6). The currently installed kernel is $(uname -r)." # Download Kernel if [ "$(uname -m)" == "x86_64" ]; then echo "Downloading the latest 64-bit kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '16p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '18p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '19p' | cut -d ' ' -f 4) else echo "Downloading the latest 32-bit kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '17p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '18p' | cut -d ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '20p' | cut -d ' ' -f 4) fi # Install Kernel -
mmstick revised this gist
Feb 3, 2014 . 1 changed file with 8 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,24 +7,24 @@ sudo rm *.deb # Kernel URL read -p "Do you want the latest RC? " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]]; then kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | tail -1 | cut -d\ ' ' -f 3) else kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | grep -v rc | tail -1 | cut -d\ ' ' -f 3) fi echo "The latest kernel is $(echo $kernelURL | cut -d/ -f 6). The currently installed kernel is $(uname -r)." # Download Kernel if [ "$(uname -m)" == "x86_64" ]; then echo "Downloading the latest 64-bit kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '16p' | cut -d\ ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '18p' | cut -d\ ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '19p' | cut -d\ ' ' -f 4) else echo "Downloading the latest 32-bit kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '17p' | cut -d\ ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '18p' | cut -d\ ' ' -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '20p' | cut -d\ ' ' -f 4) fi # Install Kernel -
mmstick revised this gist
Jan 25, 2014 . 1 changed file with 8 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,24 +7,24 @@ sudo rm *.deb # Kernel URL read -p "Do you want the latest RC? " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]]; then kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | tail -1 | cut -d\ -f 3) else kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | grep -v rc | tail -1 | cut -d\ -f 3) fi echo "The latest kernel is $(echo $kernelURL | cut -d/ -f 6). The currently installed kernel is $(uname -r)." # Download Kernel if [ "$(uname -m)" == "x86_64" ]; then echo "Downloading the latest 64-bit kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '16p' | cut -d\ -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '18p' | cut -d\ -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '19p' | cut -d\ -f 4) else echo "Downloading the latest 32-bit kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '17p' | cut -d\ -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '18p' | cut -d\ -f 4) wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '20p' | cut -d\ -f 4) fi # Install Kernel -
mmstick revised this gist
Jan 20, 2014 . 1 changed file with 14 additions and 16 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,27 +6,25 @@ sudo rm *.deb # Kernel URL read -p "Do you want the latest RC? " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]]; then kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | tail -1 | sed 's/^......//') else kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | grep -v rc | tail -1 | sed 's/^......//') fi echo "The latest kernel is $(echo $kernelURL | cut -d/ -f 6). The currently installed kernel is $(uname -r)." # Download Kernel if [ "$(uname -m)" == "x86_64" ]; then echo "Downloading the latest 64-bit kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '16p' | sed 's/^......//') wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '18p' | sed 's/^......//') wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '19p' | sed 's/^......//') else echo "Downloading the latest 32-bit kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '17p' | sed 's/^......//') wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '18p' | sed 's/^......//') wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '20p' | sed 's/^......//') fi # Install Kernel -
mmstick revised this gist
Jan 19, 2014 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,6 @@ sudo rm *.deb # Kernel URL read -p "Do you want the latest RC? " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]] then kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | tail -1 | sed 's/^......//') -
mmstick created this gist
Jan 18, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,36 @@ #!/bin/bash # Dependency sudo apt-get install lynx -y cd /tmp sudo rm *.deb # Kernel URL read -p "Do you want the latest RC? " -n 1 -r echo # (optional) move to a new line if [[ $REPLY =~ ^[Yy]$ ]] then kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | tail -1 | sed 's/^......//') else kernelURL=$(lynx -dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | grep -v rc | tail -1 | sed 's/^......//') fi echo "The latest kernel is $(echo $kernelURL | cut -d/ -f 6). The currently installed kernel is $(uname -r)." # Download Kernel if [ "$(uname -m)" == "x86_64" ] then echo "Downloading the latest 64-bit kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '16p' | sed 's/^......//') wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '18p' | sed 's/^......//') wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '19p' | sed 's/^......//') else echo "Downloading the latest 32-bit kernel." wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '17p' | sed 's/^......//') wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '18p' | sed 's/^......//') wget $(lynx -dump -listonly -dont-wrap-pre $kernelURL | sed -n '20p' | sed 's/^......//') fi # Install Kernel echo "Installing Linux Kernel" sudo dpkg -i linux*.deb echo "Done. You may now reboot."