From 62d770c2a5ee541187e304088fccdf1b4145f155 Mon Sep 17 00:00:00 2001 From: Bastian Wissler Date: Thu, 21 Aug 2008 09:37:37 +0000 Subject: Changes to ati-install-dev.sh: * Kernel version choosing now compatible with all distributions git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2068 95ad53e4-c205-0410-b2fa-d234c58c8868 --- os-plugins/plugins/xserver/files/ati-install-dev.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os-plugins/plugins/xserver') diff --git a/os-plugins/plugins/xserver/files/ati-install-dev.sh b/os-plugins/plugins/xserver/files/ati-install-dev.sh index 7df17898..561fa71a 100755 --- a/os-plugins/plugins/xserver/files/ati-install-dev.sh +++ b/os-plugins/plugins/xserver/files/ati-install-dev.sh @@ -35,11 +35,11 @@ cd ati # packages and distribution stuff cd temp/common/lib/modules/fglrx/build_mod # faking environment -uname_r=$(ls /boot/vmlinuz*|grep -v -e "^/boot/vmlinuz$$"|sed 's,/boot/vmlinuz-,,'|sort|tail -n 1) +uname_r=$(find /lib/modules/2.6* -maxdepth 0|grep -v -e "^/lib/modules/$$"|sed 's,/lib/modules/,,g'|sort|tail -n1) sed -i "s,^uname_r.*$,uname_r=${uname_r}," make.sh sed -i "s,kernel_release=.*,kernel_release=${uname_r}," make.sh #uname -m: just x86_64 and ia64 will get checked. till we support 64bit -# we'll use i386 +# we'll use i686 sed -i "s,^uname_m.*$,uname_m=i686," make.sh sh make.sh -- cgit v1.2.3-55-g7522