Skip to content

Instantly share code, notes, and snippets.

@himpich
himpich / get_latest_kernel.sh
Last active June 13, 2018 06:34 — forked from sgnn7/get_latest_kernel.sh
Fetches latest mainline kernel from upstream Ubuntu and verifies the validity of the files retrieved
#!/bin/bash -e
CURRENT_DIR=$(pwd)
BASE_URI="http://kernel.ubuntu.com/~kernel-ppa/mainline"
FINGERPRINT="60AA 7B6F 3043 4AE6 8E56 9963 E50C 6A09 17C6 22B0"
ARCH=$(dpkg --print-architecture)
declare -A FILES=([sources]="SOURCES" \
[commit]="COMMIT" \
[linux-image]="linux-image- generic_ ${ARCH}" \