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
commit67a9d2941b1db27789d481b9e3b6a043a022a5f1 (patch)
treeb0b83d0535592c0153d6a9166e78ca9d2e7d7617 /libre-testing/kernel26-libre/get_configs
parent5af9b6bf49c2179e9d73592f18b0eeb6478a3ec7 (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
+