summaryrefslogtreecommitdiff
path: root/libre/kernel26-libre
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-02-19 04:42:18 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-02-19 04:42:18 -0300
commit6a3b00646870c1d58c54ecdeccccb878ce0416ad (patch)
treecabe85c53d07d5c937a46df4b61db6f8f6657b67 /libre/kernel26-libre
parentda9e93ec10f596fdce1d1373a946a65fdd3086b9 (diff)
downloadabslibre-6a3b00646870c1d58c54ecdeccccb878ce0416ad.tar.gz
abslibre-6a3b00646870c1d58c54ecdeccccb878ce0416ad.tar.bz2
abslibre-6a3b00646870c1d58c54ecdeccccb878ce0416ad.zip
kernel26-libre-lts-2.6.32.29-1
Diffstat (limited to 'libre/kernel26-libre')
-rwxr-xr-xlibre/kernel26-libre/get_configs6
1 files changed, 4 insertions, 2 deletions
diff --git a/libre/kernel26-libre/get_configs b/libre/kernel26-libre/get_configs
index fe60a3696..09e408b8b 100755
--- a/libre/kernel26-libre/get_configs
+++ b/libre/kernel26-libre/get_configs
@@ -1,13 +1,15 @@
#!/bin/bash
source PKGBUILD
+source *.install
-pkgname=${pkgname%-libre}
+pkgname=${pkgname/-libre/}
+KERNEL_VERSION=${KERNEL_VERSION/-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}
+ 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.*