summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/xserver/files/ati-install-dev.sh
diff options
context:
space:
mode:
authorVolker Uhrig2008-08-25 20:19:33 +0200
committerVolker Uhrig2008-08-25 20:19:33 +0200
commitdfa7a40a9d49fd46936b85c57cc6508cd885fc09 (patch)
treefe0fadb0e7e6c1db75bd40705c66d638a0632e0e /os-plugins/plugins/xserver/files/ati-install-dev.sh
parentForgot to add the "getty" applet. The "new" stuff is obsolete ... (diff)
downloadcore-dfa7a40a9d49fd46936b85c57cc6508cd885fc09.tar.gz
core-dfa7a40a9d49fd46936b85c57cc6508cd885fc09.tar.xz
core-dfa7a40a9d49fd46936b85c57cc6508cd885fc09.zip
* moved ati-install-dev.sh to ati-install.sh
* added kernel compile [ati-install.sh] * activated ati-install [xserver.pm] * Status: * Kernel compiles * copy all more or less needed librarys * TODO: integration into system, copy of librarys etc * TODO: more file cleanup needed git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2096 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/xserver/files/ati-install-dev.sh')
-rwxr-xr-xos-plugins/plugins/xserver/files/ati-install-dev.sh96
1 files changed, 0 insertions, 96 deletions
diff --git a/os-plugins/plugins/xserver/files/ati-install-dev.sh b/os-plugins/plugins/xserver/files/ati-install-dev.sh
deleted file mode 100755
index 9fe904a1..00000000
--- a/os-plugins/plugins/xserver/files/ati-install-dev.sh
+++ /dev/null
@@ -1,96 +0,0 @@
-#!/bin/sh
-
-sh
-
-cd /opt/openslx/plugin-repo/xserver
-
-# check if its already installed
-if [ -d ati/ ]; then
- echo " * ati driver seems to be installed"
- echo " If you want to reinstall ati drivers press \"y\" or else we will exit"
- read
- if [ "${REPLY}" != "y" ]; then
- echo " * ati is already installed. Nothing to do."
- exit
- fi
- echo " * ati drivers will be reinstalled"
- echo " * deleting old files"
- rm -rf ati/
-fi
-
-#TODO: check if we have ati files available (and not just nvidia's)
-FILE_ATI=$(ls packages/ati-driver-installer*.run|sort|tail -n 1)
-VERSION=$(head ${FILE_ATI} | grep "label=" | sed -e 's,.*Driver-\(.*\)",\1,g')
-
-mkdir ati
-cd ati
-
-#TODO: here we should do filecheck
-#../${FILE_ATI} --check
-
-# extract ati file
-../${FILE_ATI} --extract ./temp/ > /dev/null
-
-# we try to build the modules on our own. Perhaps we don't need all the
-# packages and distribution stuff
-cd temp/common/lib/modules/fglrx/build_mod
-# faking environment
-uname_r=$(find /lib/modules/2.6* -maxdepth 0|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 i686
-sed -i "s,^uname_m.*$,uname_m=i686," make.sh
-sh make.sh
-
-
-# handle operating system
-# firs we try it with a random suse one... perhaps it fit all our needs
-# TODO: do we really need to know the specific distribution?
-# TODO: get it from stage1
-#case "$SYSNAME" in
-# "suse-10.2")
-# PKGNAME="SuSE/SUSE102-IA32"
-# ;;
-# "ubuntu")
-# PKGNAME="Ubuntu/7.10"
-# ;;
-# *)
-# echo " * failed to identify Distribution. Exit."
-# exit
-# ;;
-#esac
-
-# install
-#cd ./temp/
-#
-#./ati-installer.sh ${VERSION} --buildpkg ${PKGNAME} 2>&1 > ../out.txt
-#cd ..
-#
-#if [ "$(grep 'successfully generated' out.txt | wc -l)" -eq 1 ]; then
-# echo "System package extracted from driver archive..."
-#
-# if [ ! -d $INSTFOLDER ]; then
-# mkdir -p $INSTFOLDER
-# fi
-# PKG=$(grep "successfully generated" out.txt | cut -d' ' -f2)
-#
-# # look for the last three letters in $PKG
-# case ${PKG: -3} in
-# rpm)
-# rpm2cpio ${PKG} | cpio -i --make-directories 2>&1 > /dev/null
-# ;;
-# deb)
-# # Do something
-# ;;
-# tgz|.gz)
-# tar -zxf ${PKG} 2>&1 > /dev/null
-# ;;
-# *)
-# # Do something as default
-# echo "System Package format not recognized!"
-# exit 1
-# ;;
-# esac
-#fi
-#rm -rf out.txt