summaryrefslogtreecommitdiff
path: root/libre-testing/kernel26-libre/get_configs
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-03-16 17:09:35 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-03-16 17:09:35 -0300
commit3c259f2b20db8f94d3d5d382c0c699aab8e04bea (patch)
treeb0b83d0535592c0153d6a9166e78ca9d2e7d7617 /libre-testing/kernel26-libre/get_configs
parentb74d610fda894b84edad40c9baca58e02d77a669 (diff)
kernel26-libre-2.6.38-1
Diffstat (limited to 'libre-testing/kernel26-libre/get_configs')
-rwxr-xr-xlibre-testing/kernel26-libre/get_configs17
1 files changed, 17 insertions, 0 deletions
diff --git a/libre-testing/kernel26-libre/get_configs b/libre-testing/kernel26-libre/get_configs
new file mode 100755
index 000000000..624ea1048
--- /dev/null
+++ b/libre-testing/kernel26-libre/get_configs
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+source PKGBUILD
+
+pkgname=${pkgname/-libre/}
+KERNEL_VERSION=${2:-${_basekernel}-ARCH}
+from=${1:-core}
+
+for pkgarch in ${arch[@]}; do
+ wget -nc "http://mirrors.kernel.org/archlinux/$from/os/${pkgarch}/${pkgname}-headers-${pkgver}-${pkgrel}-${pkgarch}.pkg.tar.xz"
+ tar -xOf "${pkgname}-headers-${pkgver}-${pkgrel}-${pkgarch}.pkg.tar.xz" usr/src/linux-${KERNEL_VERSION}/.config > config.${pkgarch}
+done
+
+sed -i "s/-ARCH/-LIBRE/" config.*
+
+exit 0
+