fix the extramodules generated path (revert part of the previous commit)

This commit is contained in:
AlmAck 2015-06-13 00:58:25 +02:00
parent 51d0e59a53
commit 4790ffb416

View File

@ -8,7 +8,7 @@ _kernelver=4.0.5
pkgname=(catalyst chd-catalyst) pkgname=(catalyst chd-catalyst)
pkgver=15.5 pkgver=15.5
pkgrel=1 pkgrel=2
pkgdesc="AMD/ATI Catalyst drivers for linux. fglrx kernel module only. Radeons HD 2 3 4 xxx ARE NOT SUPPORTED" pkgdesc="AMD/ATI Catalyst drivers for linux. fglrx kernel module only. Radeons HD 2 3 4 xxx ARE NOT SUPPORTED"
screenshot="http://linuxtation3.files.wordpress.com/2007/03/pantallazo.jpg" screenshot="http://linuxtation3.files.wordpress.com/2007/03/pantallazo.jpg"
arch=('x86_64') arch=('x86_64')
@ -101,11 +101,15 @@ package_catalyst() {
# here we are checking kernel's extramodules dir # here we are checking kernel's extramodules dir
for r in /usr/lib/modules/*; do for r in /usr/lib/modules/*; do
if [[ ${r:17:3} = "ext" ]]; then s=${r:17}
if [[ `cat ${r}/version | grep -c ${_kernver}` != 0 ]]; then if [[ ${s:0:3} = "ext" ]]; then
_destidir=${r} if [[ `cat ${r}/version | grep -c ${_kver}` != 0 ]]; then
sed -i -e "s/EXTRAMODULES=.*/EXTRAMODULES=${r:17}/" $startdir/catalyst.install _destidir=${s}
sed -i -e "s/EXTRAMODULES=.*/EXTRAMODULES=${s}/" $startdir/catalyst.install
fi fi
elif [[ ${s} = ${_kver} ]] && [[ ! -e ${r}/extramodules ]]; then
_destidir=${_kver}/video
sed -i -e "s/EXTRAMODULES=.*/EXTRAMODULES=null/" $startdir/catalyst.install
fi fi
done done