Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flux242/635e1dad33c335fe9592bb1b7c28cd3c to your computer and use it in GitHub Desktop.
Save flux242/635e1dad33c335fe9592bb1b7c28cd3c to your computer and use it in GitHub Desktop.
#!/bin/sh
# available architectures: amd64, arm64, armhf, i386, ppc64el, s390x
ARCH=amd64
DLDIR="$HOME/Downloads"
wget -P "$DLDIR" "https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+files/linux-headers-4.10.0-22-generic_4.10.0-22.24_${ARCH}.deb" && \
wget -P "$DLDIR" "https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+files/linux-headers-4.10.0-22_4.10.0-22.24_all.deb" && \
wget -P "$DLDIR" "https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+files/linux-image-4.10.0-22-generic_4.10.0-22.24_${ARCH}.deb" && \
wget -P "$DLDIR" "https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+files/linux-image-extra-4.10.0-22-generic_4.10.0-22.24_${ARCH}.deb"
[ "$?" = 0 ] && {
sudo dpkg -i "${DLDIR}/linux-headers-4.10.0-22-generic_4.10.0-22.24_amd64.deb" \
"${DLDIR}/linux-headers-4.10.0-22_4.10.0-22.24_all.deb" \
"${DLDIR}/linux-image-4.10.0-22-generic_4.10.0-22.24_amd64.deb" \
"${DLDIR}/linux-image-extra-4.10.0-22-generic_4.10.0-22.24_amd64.deb"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment