summaryrefslogtreecommitdiff
path: root/libre/kernel26-libre/get_configs
diff options
context:
space:
mode:
Diffstat (limited to 'libre/kernel26-libre/get_configs')
-rwxr-xr-xlibre/kernel26-libre/get_configs16
1 files changed, 16 insertions, 0 deletions
diff --git a/libre/kernel26-libre/get_configs b/libre/kernel26-libre/get_configs
new file mode 100755
index 000000000..1b42ebd11
--- /dev/null
+++ b/libre/kernel26-libre/get_configs
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+source PKGBUILD
+
+pkgname=${pkgname%-libre}
+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-${_basekernel}-ARCH/.config > config.${pkgarch}
+done
+
+wget -O PKGBUILD.official "http://repos.archlinux.org/wsvn/packages/kernel26/repos/${from}-i686/PKGBUILD?op=dl"
+
+exit 0
+