Skip to content

Instantly share code, notes, and snippets.

View abhishekr700's full-sized avatar
🏠
Working from home

Abhishek Ranjan abhishekr700

🏠
Working from home
  • Google
  • Bengaluru, India
  • 19:50 (UTC +05:30)
View GitHub Profile
@mmstick
mmstick / Ubuntu Kernel Upgrader Script
Last active March 11, 2023 04:53
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)
}