Created
May 26, 2017 07:00
-
-
Save flux242/635e1dad33c335fe9592bb1b7c28cd3c to your computer and use it in GitHub Desktop.
This file contains 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 characters
#!/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