Skip to content

Instantly share code, notes, and snippets.

@mduplifting
mduplifting / Ubuntu Kernel Upgrader Script
Last active January 11, 2016 19:13 — forked from mmstick/Ubuntu Kernel Upgrader Script
Asks the user whether they want to install the latest RC or stable, then downloads the correct kernel and installs it.
#!/bin/bash
cd /tmp
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)
}