dockerfiles/kernel-builder/download-kernel
Jessica Frazelle 9255eb4c57 download-kernel
2015-02-06 13:02:04 -08:00

11 lines
209 B
Bash
Executable File

#!/bin/bash
VERSION=$1
if [[ -z $VERSION ]]; then
echo "Please specify a kernel version."
exit 1
fi
curl -sSL https://www.kernel.org/pub/linux/kernel/v3.x/linux-${VERSION}.tar.xz | tar -v -C /usr/src -xJ