diff options
Diffstat (limited to 'libre-testing/kernel26-libre/get_configs')
-rwxr-xr-x | libre-testing/kernel26-libre/get_configs | 17 |
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 + |