diff options
author | V3n3RiX <venerix@rogentos.ro> | 2015-10-04 19:09:51 +0100 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2015-10-04 19:09:51 +0100 |
commit | 836dcf91c181df6afb0f658bf31d34744f8ff052 (patch) | |
tree | 17d553cc348a5cdf287a55c96021971340cd5b1d /x11-drivers/ati-drivers/files/switchlibGL | |
parent | 1df4d224a758ee39311dbff64893a509ef78ede2 (diff) |
drop splitted x11 drivers, we go gentoo way
Diffstat (limited to 'x11-drivers/ati-drivers/files/switchlibGL')
-rw-r--r-- | x11-drivers/ati-drivers/files/switchlibGL | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/x11-drivers/ati-drivers/files/switchlibGL b/x11-drivers/ati-drivers/files/switchlibGL deleted file mode 100644 index a6aa4fce..00000000 --- a/x11-drivers/ati-drivers/files/switchlibGL +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash -# switchlibGL -# -# Copyright (c) 2011 Advanced Micro Devices, Inc. -# -# Purpose: -# For switch between AMD and Intel graphic driver library. -# -# Usage: -# switchlibGL amd|intel|query -# amd: switches to the AMD version of libGL. -# intel: switches to the open-source version of libGL . -# query: checks, which version is currently active and prints either "amd" -# or "intel" or "unknown" on the standard output. -# must be root to execute this script - -ARCH=`uname -m` -E_ERR=1 - -# Check if root -if [ "`whoami`" != "root" ]; then - echo "Must be root to run this script." 1>&2 - exit $E_ERR -fi - -# One parameter -if [ $# -ne 1 ]; then - echo "Usage: `basename $0` amd|intel|query " 1>&2 - echo "Please choose one parameter " 1>&2 - exit $E_ERR -fi - -current=$(eselect opengl show) -# Switch to right mode -case "$1" in - "amd" ) - if [ $current != ati ] ; then - eselect opengl set ati || return 1 - fi - ;; - "intel" ) - if [ $current != xorg-x11 ] ; then - eselect opengl set xorg-x11 || return 1 - fi - ;; - "query" ) - case "$current" in - "ati" ) - echo "amd" - ;; - "xorg-x11" ) - echo "intel" - ;; - esac - ;; - * ) echo "Usage: `basename $0` amd|intel|query" 1>&2; exit $E_ERR;; - # other than amd|intel|query parameter report an error -esac - -# A zero return value from the script upon exit indicates success. -exit 0 |