aboutsummaryrefslogtreecommitdiff
path: root/TOOLS/download_kernel.sh
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2024-07-31 13:57:21 +0200
committerJan200101 <sentrycraft123@gmail.com>2024-07-31 13:57:21 +0200
commitd5731f7b08817d6c698f9263d9bbe1f1ebf49cde (patch)
treecd8c2f8d4c88ed74457840c23906f2c0d4b5fd44 /TOOLS/download_kernel.sh
parentf965cef7025748b063c8dd30759f836fdf1d2a1c (diff)
downloadkernel-fsync-d5731f7b08817d6c698f9263d9bbe1f1ebf49cde.tar.gz
kernel-fsync-d5731f7b08817d6c698f9263d9bbe1f1ebf49cde.zip
kernel 6.9.12 Loki mini hda pin fixes
Diffstat (limited to 'TOOLS/download_kernel.sh')
-rwxr-xr-xTOOLS/download_kernel.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/TOOLS/download_kernel.sh b/TOOLS/download_kernel.sh
new file mode 100755
index 0000000..4f5989d
--- /dev/null
+++ b/TOOLS/download_kernel.sh
@@ -0,0 +1,22 @@
+#/bin/env bash
+set -eu
+
+if [[ $# != 1 ]]; then
+ >&2 echo "usage: download_kernel.sh [f40]"
+ exit 1
+fi
+
+TOPDIR="$(realpath "$(dirname "${BASH_SOURCE[0]}")/..")"
+SOURCEDIR="${TOPDIR}/SOURCES"
+FEDORA="${1}"
+
+TEMP_DIR=$(mktemp -d)
+trap '{ rm -rf -- "$TEMP_DIR"; }' EXIT
+pushd $TEMP_DIR
+
+wget https://src.fedoraproject.org/rpms/kernel/raw/${FEDORA}/f/kernel.spec
+wget https://src.fedoraproject.org/rpms/kernel/raw/${FEDORA}/f/sources
+
+fedpkg --name kernel sources --force --outdir "${SOURCEDIR}"
+
+popd