download-kernel

This commit is contained in:
Jessica Frazelle 2015-02-06 12:57:15 -08:00
parent 6d5641db75
commit 9255eb4c57
2 changed files with 13 additions and 1 deletions

View File

@ -11,4 +11,6 @@ RUN apt-get update && apt-get install -y \
WORKDIR /usr/src
ENTRYPOINT [ "bash" ]
COPY ./download-kernel /usr/local/bin/download-kernel
CMD [ "bash" ]

10
kernel-builder/download-kernel Executable file
View File

@ -0,0 +1,10 @@
#!/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